Source: asterisk
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Dear Maintainer,
attached patch fixes FTBFS on hurd-i386.

Thanks for considering.
-- 
G..e
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -233,4 +233,8 @@ struct ast_sched_context;
 #define __stringify_1(x)       #x
 #define __stringify(x)         __stringify_1(x)
 
+#ifndef PATH_MAX
+# define PATH_MAX 4096
+#endif
+
 #endif /* _ASTERISK_H */
--- a/main/netsock.c
+++ b/main/netsock.c
@@ -33,7 +33,7 @@
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision: 417167 $")
 
-#ifndef __linux__
+#if !defined (__linux__) && !defined (__GNU__)
 #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || 
defined(__Darwin__) || defined(__GLIBC__)
 #include <net/if_dl.h>
 #endif
--- a/Makefile
+++ b/Makefile
@@ -790,7 +790,7 @@ install-logrotate:
        rm -f contrib/scripts/asterisk.logrotate.tmp
 
 config:
-       @if [ "${OSARCH}" = "linux-gnu" -o "${OSARCH}" = "kfreebsd-gnu" ]; then 
\
+       @if [ "${OSARCH}" = "linux-gnu" -o "${OSARCH}" = "kfreebsd-gnu" -o 
"${OSARCH}" = "gnu" ]; then \
                $(INSTALL) -d $(DESTDIR)/lib/systemd/system; \
                ./build_tools/install_subst -d contrib/asterisk.service 
$(DESTDIR)/lib/systemd/system/asterisk.service; \
                if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then \

Reply via email to