freebsd-ports/palm/coldsync/files/patch-in6
Mikhail Teterin 15c5750d2d Upgrade to the latest stable version -- 2.2.5, which supports Palms in
addition to Handspring, so there is no need for patch-palm any more.

Remove the Perl parts of this port. They will be turned into the new
p5-coldsync. Now, that the port no longer uses Perl, switch back to
REINPLACE and rephrase the regexps, so they work (\S was a perlism).

Make patch-in6 a little nicer by making coldsync.c define _POSIX_SOURCE
as 200112 -- the only way to cause netinet/in.h to include
netinet6/in6.h, apparently.

Reviewed by:	knu (portmgr)
Approved by:	maintainer, portmgr
2002-12-27 21:11:59 +00:00

17 lines
604 B
Text

--- libpconn/PConnection_net.c Mon Nov 19 18:08:06 2001
+++ libpconn/PConnection_net.c Thu Dec 26 08:02:24 2002
@@ -11,5 +11,5 @@
#include <netdb.h> /* For getservbyname() */
#include <string.h> /* For memset() */
-#if HAVE_INET_NTOP
+#if HAVE_INET_NTOP && !defined(__FreeBSD__)
# include <arpa/nameser.h> /* Solaris's <resolv.h> requires this */
# include <resolv.h> /* For inet_ntop() under Solaris */
--- src/coldsync.c Wed Nov 28 16:48:44 2001
+++ src/coldsync.c Thu Dec 26 08:26:47 2002
@@ -8,2 +8,5 @@
*/
+#ifdef __FreeBSD__
+# define _POSIX_C_SOURCE 200112
+#endif
#include "config.h"