forked from enlightenment/efl
* ecore/src/lib/ecore_con/ecore_con.c: Fix some typo and include.
SVN revision: 39206
This commit is contained in:
parent
2f05c62298
commit
f527e4ddee
|
@ -14,6 +14,10 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_ABSTRACT_SOCKETS
|
||||||
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Ecore.h"
|
#include "Ecore.h"
|
||||||
#include "ecore_private.h"
|
#include "ecore_private.h"
|
||||||
#include "Ecore_Con.h"
|
#include "Ecore_Con.h"
|
||||||
|
@ -235,7 +239,7 @@ ecore_con_server_add(Ecore_Con_Type compl_type, const char *name, int port,
|
||||||
socket_unix.sun_family = AF_UNIX;
|
socket_unix.sun_family = AF_UNIX;
|
||||||
if (type == ECORE_CON_LOCAL_ABSTRACT)
|
if (type == ECORE_CON_LOCAL_ABSTRACT)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ABSTRACT_SOCKET
|
#ifdef HAVE_ABSTRACT_SOCKETS
|
||||||
/* . is a placeholder */
|
/* . is a placeholder */
|
||||||
snprintf(socket_unix.sun_path, sizeof(socket_unix.sun_path), ".%s", name);
|
snprintf(socket_unix.sun_path, sizeof(socket_unix.sun_path), ".%s", name);
|
||||||
/* first char null indicates abstract namespace */
|
/* first char null indicates abstract namespace */
|
||||||
|
|
Loading…
Reference in New Issue