1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Define SUN_LEN also for W32.

This commit is contained in:
Werner Koch 2009-06-04 14:19:21 +00:00
parent dac70ca2fd
commit e80d9387b2
3 changed files with 137 additions and 4 deletions

View file

@ -61,9 +61,13 @@ time_t timegm (struct tm *tm);
/* Include hacks which are mainly required for Slowaris. */
#if defined(JNLIB_NEED_AFLOCAL) && !defined(HAVE_W32_SYSTEM)
#include <sys/socket.h>
#include <sys/un.h>
#ifdef JNLIB_NEED_AFLOCAL
#ifndef HAVE_W32_SYSTEM
# include <sys/socket.h>
# include <sys/un.h>
#else
# include <windows.h>
#endif
#ifndef PF_LOCAL
# ifdef PF_UNIX
@ -88,7 +92,7 @@ time_t timegm (struct tm *tm);
# define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \
+ strlen ((ptr)->sun_path))
#endif /*SUN_LEN*/
#endif /*JNLIB_NEED_AFLOCAL && !HAVE_W32_SYSTEM*/
#endif /*JNLIB_NEED_AFLOCAL*/
#endif /*LIBJNLIB_MISCHELP_H*/