Bug#784551: asterisk: FTBFS on Hurd

Gabriele Giacone 1o5g4r8o at gmail.com
Wed May 6 15:26:56 UTC 2015


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

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

Thanks for considering.
-- 
G..e
-------------- next part --------------
--- 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 \


More information about the Pkg-voip-maintainers mailing list