freebsd-ports/mail/libspf-alt/files/patch-bin::spf_example::spf_example.c
Oliver Eikemeier 5bf9ca5e02 fix build on 4.x without libgnugetopt
Submitted by:	Daniel Roethlisberger <daniel@roe.ch> (maintainer)
Reported by:	kris
2004-05-28 22:54:07 +00:00

17 lines
365 B
C

--- bin/spf_example/spf_example.c.orig Sat Apr 10 00:08:41 2004
+++ bin/spf_example/spf_example.c Fri May 28 22:59:52 2004
@@ -55,8 +55,12 @@
# include <arpa/inet.h> /* in_addr struct */
#endif
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
+#if defined(__FreeBSD__)
+#if (OSVERSION > 500000)
+#include "getopt.h"
+#else
+#include "unistd.h"
+#endif
#endif