gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r4029 - in GNUnet: . src/include


From: grothoff
Subject: [GNUnet-SVN] r4029 - in GNUnet: . src/include
Date: Sat, 23 Dec 2006 13:56:41 -0800 (PST)

Author: grothoff
Date: 2006-12-23 13:56:39 -0800 (Sat, 23 Dec 2006)
New Revision: 4029

Modified:
   GNUnet/AUTHORS
   GNUnet/src/include/platform.h
Log:
Hi,

I fixed a build problem with GNUnet r2045 on OpenBSD 3.9/amd64. I I 
modified the block related to OpenBSD only.

#ifdef OPENBSD
#include <sys/types.h>
#include <dlfcn.h>
#endif

is now:

#ifdef OPENBSD
/* FIX: force declaration of u_int, u_char, ... needed by netinet/tcp.h */
#undef __BSD_VISIBLE
#define __BSD_VISIBLE 1
#include <sys/types.h>
#include <dlfcn.h>
#endif

The modification don't seems to be what can be called a "clean fix" as 
you may have guessed. I hope being able to better understand OpenBSD's 
internals one day ;)

sheda


Modified: GNUnet/AUTHORS
===================================================================
--- GNUnet/AUTHORS      2006-12-23 21:54:19 UTC (rev 4028)
+++ GNUnet/AUTHORS      2006-12-23 21:56:39 UTC (rev 4029)
@@ -33,6 +33,7 @@
 Risto Saarelma
 Roman Zippel
 Romain Lievin
+sheda <address@hidden>
 Simo Viitanen
 Tiberius Stef <address@hidden>
 Tomi Tukiainen

Modified: GNUnet/src/include/platform.h
===================================================================
--- GNUnet/src/include/platform.h       2006-12-23 21:54:19 UTC (rev 4028)
+++ GNUnet/src/include/platform.h       2006-12-23 21:56:39 UTC (rev 4029)
@@ -32,7 +32,12 @@
 #define HAVE_USED_CONFIG_H
 #include "config.h"
 #endif
+
+
 #ifdef OPENBSD
+/* force declaration of u_int, u_char, ... needed by netinet/tcp.h */
+#undef __BSD_VISIBLE
+#define __BSD_VISIBLE 1
 #include <sys/types.h>
 #include <dlfcn.h>
 #endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]