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

Bug#349416: FTBFS: apr_sendfile for the Hurd



Package: apache2
Severity: important
Tags: patch
Justification: fails to build from source

Hi,

apache2 fails to build from source: 

#error APR has detected sendfile on your system, but nobody has written a
#error version of it for APR yet. To get past this, either write apr_sendfile
#error or change APR_HAS_SENDFILE in apr.h to 0.

The simple following patch corrects this:

--- build-tree.old/apache2/srclib/apr/network_io/unix/sendrecv.c	2005-03-28 22:21:19.000000000 +0200
+++ build-tree/apache2/srclib/apr/network_io/unix/sendrecv.c	2005-03-28 22:22:11.000000000 +0200
@@ -239,7 +239,7 @@
 /* Define a structure to pass in when we have a NULL header value */
 static apr_hdtr_t no_hdtr;
 
-#if defined(__linux__) && defined(HAVE_WRITEV)
+#if (defined(__linux__) || defined(__GNU__)) && defined(HAVE_WRITEV)
 
 apr_status_t apr_socket_sendfile(apr_socket_t *sock, apr_file_t *file,
                                  apr_hdtr_t *hdtr, apr_off_t *offset,


Regards,
Samuel
-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU 0.3
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

-- 
Samuel Thibault <samuel.thibault@ens-lyon.org>



Reply to: