pkgsrc/devel/pwlib/patches/patch-as
joerg cd1ee1d986 Use SUBST framework. Readd some replacements in the mak files, since
they are installed and should work without the pkgsrc framework to
define e.g. LIBTOOL. Bump the revision for this.

Fix the inclusion in Makefiles by crudely faking the installation
directory layout. Remove some explicit casts which break with GCC 3.4
and OpenSSL 0.9.8, this might need to be conditionalized.
Add DraogonFly support and somewhat cleanup the FreeBSD sound includes.
2006-01-08 04:57:55 +00:00

22 lines
697 B
Text

$NetBSD: patch-as,v 1.1 2006/01/08 04:57:55 joerg Exp $
--- include/ptlib/unix/ptlib/pmachdep.h.orig 2006-01-08 03:44:23.000000000 +0000
+++ include/ptlib/unix/ptlib/pmachdep.h
@@ -217,7 +217,7 @@ typedef size_t socklen_t;
#endif
///////////////////////////////////////////////////////////////////////////////
-#elif defined(P_FREEBSD)
+#elif defined(P_FREEBSD) || defined(P_DRAGONFLY)
#if defined(P_PTHREADS)
#ifndef _THREAD_SAFE
@@ -241,7 +241,7 @@ typedef size_t socklen_t;
#include <netinet/tcp.h>
/* socklen_t is defined in FreeBSD 3.4-STABLE, 4.0-RELEASE and above */
-#if (P_FREEBSD <= 340000)
+#if defined(P_FREEBSD) && (P_FREEBSD <= 340000)
typedef int socklen_t;
#endif