aboutsummaryrefslogtreecommitdiff
path: root/audio/libadplug/files/patch-adplugdb_adplugdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libadplug/files/patch-adplugdb_adplugdb.cpp')
-rw-r--r--audio/libadplug/files/patch-adplugdb_adplugdb.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/libadplug/files/patch-adplugdb_adplugdb.cpp b/audio/libadplug/files/patch-adplugdb_adplugdb.cpp
new file mode 100644
index 000000000000..e95968907f4a
--- /dev/null
+++ b/audio/libadplug/files/patch-adplugdb_adplugdb.cpp
@@ -0,0 +1,27 @@
+--- adplugdb/adplugdb.cpp.orig Sun Aug 8 21:17:40 2004
++++ adplugdb/adplugdb.cpp Sat May 7 06:16:26 2005
+@@ -29,6 +29,7 @@
+ #include <binfile.h>
+ #include <string>
+ #include <iostream>
++#include <unistd.h>
+
+ #if defined(HAVE_SYS_TYPES_H) && defined(HAVE_SYS_STAT_H)
+ # if HAVE_SYS_TYPES_H
+@@ -46,16 +47,6 @@
+ #include "../src/adplug.h"
+ #include "../src/silentopl.h"
+ #include "../src/database.h"
+-
+-/*
+- * Apple (OS X) and Sun systems declare getopt in unistd.h, other systems
+- * (Linux) use getopt.h.
+- */
+-#if defined ( __APPLE__ ) || ( defined (__SVR4) && defined (__sun) )
+-# include <unistd.h>
+-#else
+-# include "getopt.h"
+-#endif
+
+ /***** Defines *****/
+