28 lines
676 B
Plaintext
28 lines
676 B
Plaintext
$OpenBSD: patch-src_sdlmain_cpp,v 1.1 2001/12/28 21:51:08 pvalchev Exp $
|
|
--- src/sdlmain.cpp.orig Fri Nov 23 22:12:36 2001
|
|
+++ src/sdlmain.cpp Fri Dec 28 14:32:32 2001
|
|
@@ -26,8 +26,22 @@
|
|
#include <errno.h>
|
|
#include <time.h>
|
|
|
|
-#ifdef __GNUG__
|
|
+#if defined(__GNUG__) && !defined(__OpenBSD__)
|
|
#include <getopt.h>
|
|
+#elif defined(__OpenBSD__)
|
|
+#undef __GNUG__
|
|
+extern int getopt_long __P((int __argc, char *const *__argv, const char *__shortopts,
|
|
+ const struct option *__longopts, int *__longind));
|
|
+struct option
|
|
+{
|
|
+ char *name;
|
|
+ int has_arg;
|
|
+ int *flag;
|
|
+ int val;
|
|
+};
|
|
+# define no_argument 0
|
|
+# define required_argument 1
|
|
+# define optional_argument 2
|
|
#endif
|
|
|
|
|