summaryrefslogtreecommitdiff
path: root/databases/sdbm/patches
diff options
context:
space:
mode:
authordholland <dholland>2013-04-14 01:26:03 +0000
committerdholland <dholland>2013-04-14 01:26:03 +0000
commitcc2acd7cdbc2800f0ba81d9c3845f0022d2e951b (patch)
tree5e2d59867a7c5107ac358db57385dc95eab40915 /databases/sdbm/patches
parent1b16991b126ac3bb78308482fbf9c4591260d08d (diff)
downloadpkgsrc-cc2acd7cdbc2800f0ba81d9c3845f0022d2e951b.tar.gz
Don't provide own getopt on Solaris. May fix the Solaris build.
Diffstat (limited to 'databases/sdbm/patches')
-rw-r--r--databases/sdbm/patches/patch-af8
1 files changed, 4 insertions, 4 deletions
diff --git a/databases/sdbm/patches/patch-af b/databases/sdbm/patches/patch-af
index 93c8f98c395..865e42a9e00 100644
--- a/databases/sdbm/patches/patch-af
+++ b/databases/sdbm/patches/patch-af
@@ -1,12 +1,12 @@
-$NetBSD: patch-af,v 1.4 2012/06/23 18:49:28 dholland Exp $
+$NetBSD: patch-af,v 1.5 2013/04/14 01:26:03 dholland Exp $
- Use standard headers.
-- Don't provide own getopt on BSD platforms.
+- Don't provide own getopt on BSD platforms, or on Solaris.
- Use <ctype.h> functions correctly.
- Avoid signed bitwise operations.
- Use the modern regexp library interface.
---- dbe.c.orig 2012-06-23 18:47:09.000000000 +0000
+--- dbe.c.orig 2013-04-14 01:29:53.000000000 +0000
+++ dbe.c
@@ -1,6 +1,12 @@
+#include <sys/types.h>
@@ -26,7 +26,7 @@ $NetBSD: patch-af,v 1.4 2012/06/23 18:49:28 dholland Exp $
#define index strchr
#endif
-+#if !(defined(BSD) && BSD >= 199506)
++#if !(defined(BSD) && BSD >= 199506) && !defined(__sun)
char
getopt(argc, argv, optstring)
int argc;