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

Bug#632499: redis: FTBFS (kfreebsd): needs small adjustment



Package: redis
Version: 2:2.2.10-1
Severity: important
Tags: patch

Hi!

    redis won't build without _XOPEN_SOURCE set to 700, please
consider setting it on any glibc based system (patch below).

--- redis-2.2.10.orig/src/fmacros.h
+++ redis-2.2.10/src/fmacros.h
@@ -3,7 +3,7 @@
 
 #define _BSD_SOURCE
 
-#ifdef __linux__
+#ifdef __GLIBC__
 #define _XOPEN_SOURCE 700
 #else
 #define _XOPEN_SOURCE


    While at it, it might be a good idea to enable KQUEUE as well
(Cc-ing debian-bsd@ for information on that)

--- redis-2.2.10.orig/src/config.h
+++ redis-2.2.10/src/config.h
@@ -50,7 +50,7 @@
 #define HAVE_EPOLL 1
 #endif
 
-#if (defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__)
+#if (defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__) || defined(__FreeBSD_kernel__)
 #define HAVE_KQUEUE 1
 #endif
 

Regards

    Christoph


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.2-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



Reply to: