Package: libassa
Severity: important
Tags: patch
Hi,
The current version of libassa fails to build on GNU/kFreeBSD. Please
find attached a small patch to fix that. It would be nice if you can
include it in your next upload.
Thanks for your cooperation,
Aurelien
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Author: aurel32
Status: in BTS
--- libassa-3.3.2.orig/assa/Handlers.h
+++ libassa-3.3.2/assa/Handlers.h
@@ -27,7 +27,7 @@
*/
-#if defined (__FreeBSD__)
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
# define ASSAIOSIG SIGIO
#else
# define ASSAIOSIG SIGPOLL
--- libassa-3.3.2.orig/assa/GenServer.cpp
+++ libassa-3.3.2/assa/GenServer.cpp
@@ -158,7 +158,7 @@
ignore_act.register_action( SIGPIPE );
ignore_act.register_action( SIGCHLD );
-#if !defined (__FreeBSD__)
+#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__)
ignore_act.register_action( SIGCLD );
#endif
ignore_act.register_action( SIGALRM );
--- libassa-3.3.2.orig/assa/Socket.cpp
+++ libassa-3.3.2/assa/Socket.cpp
@@ -17,7 +17,7 @@
#include <sstream>
#include <rpc/rpc.h>
-#if defined (__FreeBSD__)
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
# include <sys/ioctl.h>
#endif