hack for clang...
This commit is contained in:
parent
1eedcbbff8
commit
2ef0b0847b
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2017/01/14 17:29:45 danj Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2017/05/06 14:10:16 espie Exp $
|
||||
|
||||
COMMENT = open source, multi-platform library for creating windows
|
||||
DISTNAME = glfw-3.2.1
|
||||
CATEGORIES = graphics x11
|
||||
REVISION = 0
|
||||
|
||||
SHARED_LIBS += glfw 1.0 # 3.1
|
||||
|
||||
|
22
graphics/glfw/patches/patch-deps_getopt_c
Normal file
22
graphics/glfw/patches/patch-deps_getopt_c
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-deps_getopt_c,v 1.1 2017/05/06 14:10:16 espie Exp $
|
||||
XXX borrow variables from system getopt, work-around clang bug.
|
||||
|
||||
Index: deps/getopt.c
|
||||
--- deps/getopt.c.orig
|
||||
+++ deps/getopt.c
|
||||
@@ -33,11 +33,10 @@ const int no_argument = 0;
|
||||
const int required_argument = 1;
|
||||
const int optional_argument = 2;
|
||||
|
||||
-char* optarg;
|
||||
-int optopt;
|
||||
-/* The variable optind [...] shall be initialized to 1 by the system. */
|
||||
-int optind = 1;
|
||||
-int opterr;
|
||||
+extern char *optarg;
|
||||
+extern int optopt;
|
||||
+extern int optind;
|
||||
+extern int opterr;
|
||||
|
||||
static char* optcursor = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user