[kaffe] Build failure of CVS head for i386/NetBSD
Kiyo Inaba
inaba at src.ricoh.co.jp
Sun Jan 14 21:58:58 PST 2007
Hi,
As Kaz suggested, I modified as attached patch and the build get success.
But for cpnet.c, this patch omit one feature which is originally provided.
I have no idea (except with private signal handler) how to add NOPIPE
flag for send, if it is not provided by the OS...
It looks like this 'patch' also solve m68k/NetBSD configure problem.
Any better idea which really fix the cpnet.c's problem?
Kiyo
-------------------------------------------------------------------------
diff -ur kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.c /proj/kaffe/kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.c
--- kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.c 2007-01-15 11:41:49.000000000 +0900
+++ /proj/kaffe/kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.c 2007-01-06 00:03:09.000000000 +0900
@@ -60,8 +60,7 @@
#elif defined (HAVE_SO_NOSIGPIPE)
#define SOCKET_NOSIGNAL SO_NOSIGPIPE
#else
-/* #error "No suitable flag found to ommit a SIGPIPE on signal errors with send()." */
-#define SOCKET_NOSIGNAL 0
+#error "No suitable flag found to ommit a SIGPIPE on signal errors with send()."
#endif
static int socketTimeouts[FD_SETSIZE];
diff -ur kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.h /proj/kaffe/kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.h
--- kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.h 2007-01-15 11:44:59.000000000 +0900
+++ /proj/kaffe/kaffe-snap-070111/libraries/javalib/external/classpath/native/jni/native-lib/cpnet.h 2007-01-04 08:02:28.000000000 +0900
@@ -44,7 +44,6 @@
#include <sys/socket.h>
#include <netinet/in.h>
-#include <netinet/in_systm.h>
#include <netinet/ip.h>
typedef struct {
More information about the kaffe
mailing list