diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-07-28 20:00:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-07-28 20:00:56 +0000 |
commit | bcee76e451efbd3c1dd296df5bd42643372e494a (patch) | |
tree | 4fed6b613682195aa28c8c7f557928e9546e16aa /src | |
parent | f04007ef0d193b662c6a9fb007e11735a8886406 (diff) | |
download | gnunet-bcee76e451efbd3c1dd296df5bd42643372e494a.tar.gz gnunet-bcee76e451efbd3c1dd296df5bd42643372e494a.zip |
fixing 1592
Diffstat (limited to 'src')
-rw-r--r-- | src/include/platform.h | 5 | ||||
-rw-r--r-- | src/util/os_installation.c | 15 |
2 files changed, 5 insertions, 15 deletions
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 @@ | |||
83 | #include <netdb.h> | 83 | #include <netdb.h> |
84 | #include <sys/socket.h> | 84 | #include <sys/socket.h> |
85 | #include <sys/un.h> | 85 | #include <sys/un.h> |
86 | #if HAVE_NETINET_IN_H | ||
86 | #include <netinet/in.h> | 87 | #include <netinet/in.h> |
88 | #endif | ||
89 | #if HAVE_NETINET_IN_SYSTM_H | ||
90 | #include <netinet/in_systm.h> | ||
91 | #endif | ||
87 | #include <netinet/ip.h> /* superset of previous */ | 92 | #include <netinet/ip.h> /* superset of previous */ |
88 | #include <arpa/inet.h> | 93 | #include <arpa/inet.h> |
89 | #include <netinet/tcp.h> | 94 | #include <netinet/tcp.h> |
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 @@ | |||
23 | * @brief get paths used by the program | 23 | * @brief get paths used by the program |
24 | * @author Milan | 24 | * @author Milan |
25 | */ | 25 | */ |
26 | |||
27 | #ifdef __cplusplus | ||
28 | extern "C" | ||
29 | { | ||
30 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
31 | } | ||
32 | #endif | ||
33 | #endif | ||
34 | |||
35 | #include <sys/stat.h> | 26 | #include <sys/stat.h> |
36 | #include <stdlib.h> | 27 | #include <stdlib.h> |
37 | #include <string.h> | 28 | #include <string.h> |
@@ -435,10 +426,4 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind) | |||
435 | return tmp; | 426 | return tmp; |
436 | } | 427 | } |
437 | 428 | ||
438 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
439 | { | ||
440 | #endif | ||
441 | #ifdef __cplusplus | ||
442 | } | ||
443 | #endif | ||
444 | /* end of os_installation.c */ | 429 | /* end of os_installation.c */ |