summaryrefslogtreecommitdiff
path: root/lang/cint/patches/patch-am
blob: 414c1789dffd8f0a50ad6d0e46b7536351c31b68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-am,v 1.2 2015/12/11 23:32:22 joerg Exp $

--- tool/ifdef/ifdef.cxx.orig	2005-05-06 08:49:09.000000000 +0000
+++ tool/ifdef/ifdef.cxx
@@ -13,6 +13,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <unistd.h>
 #include <string>
 #include <map>
 #ifndef __hpux
@@ -62,7 +63,7 @@ extern "C" {
 char *G__calc(char*);
 char *G__getexpr(char*);
 char *G__getandor(char*);
-#if !defined(__hpux) && !defined(__APPLE__) 
+#if !defined(__hpux) && !defined(__APPLE__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
 char getopt(int argc,char **argv,char *optlist);
 #endif
 extern int optind;