From bcee76e451efbd3c1dd296df5bd42643372e494a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 28 Jul 2010 20:00:56 +0000 Subject: fixing 1592 --- configure.ac | 2 +- src/include/platform.h | 5 +++++ src/util/os_installation.c | 15 --------------- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/configure.ac b/configure.ac index 40608c5ce..ba9261aa7 100644 --- a/configure.ac +++ b/configure.ac @@ -244,7 +244,7 @@ AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h string.h unistd.h stdarg.h signal.h locale.h sys/stat.h sys/types.h],,AC_MSG_ERROR([Compiling GNUnet requires standard UNIX headers files])) # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) -AC_CHECK_HEADERS([langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h]) +AC_CHECK_HEADERS([langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h netinet/in_sysm.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h]) # test for libgmp gmp=0 diff --git a/src/include/platform.h b/src/include/platform.h index 30fa8f9b5..b36cd83a4 100644 --- a/src/include/platform.h +++ b/src/include/platform.h @@ -83,7 +83,12 @@ #include #include #include +#if HAVE_NETINET_IN_H #include +#endif +#if HAVE_NETINET_IN_SYSTM_H +#include +#endif #include /* superset of previous */ #include #include diff --git a/src/util/os_installation.c b/src/util/os_installation.c index 2470c0ce2..2b75a1196 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c @@ -23,15 +23,6 @@ * @brief get paths used by the program * @author Milan */ - -#ifdef __cplusplus -extern "C" -{ -#if 0 /* keep Emacsens' auto-indent happy */ -} -#endif -#endif - #include #include #include @@ -435,10 +426,4 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind) return tmp; } -#if 0 /* keep Emacsens' auto-indent happy */ -{ -#endif -#ifdef __cplusplus -} -#endif /* end of os_installation.c */ -- cgit v1.2.3