* ecore/src/lib/ecore_con/ecore_con.c: Fix some typo and include.

SVN revision: 39206
This commit is contained in:
Cedric BAIL 2009-02-25 15:03:59 +00:00
parent 2f05c62298
commit f527e4ddee
1 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,10 @@
#include <unistd.h>
#include <fcntl.h>
#ifndef HAVE_ABSTRACT_SOCKETS
#include <stdio.h>
#endif
#include "Ecore.h"
#include "ecore_private.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;
if (type == ECORE_CON_LOCAL_ABSTRACT)
{
#ifdef HAVE_ABSTRACT_SOCKET
#ifdef HAVE_ABSTRACT_SOCKETS
/* . is a placeholder */
snprintf(socket_unix.sun_path, sizeof(socket_unix.sun_path), ".%s", name);
/* first char null indicates abstract namespace */