[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog utilities/dumpshm.cpp
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash ChangeLog utilities/dumpshm.cpp |
Date: |
Sun, 22 Oct 2006 11:18:53 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 06/10/22 11:18:52
Modified files:
. : ChangeLog
utilities : dumpshm.cpp
Log message:
Fixed getopt() for non-GNUC.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1340&r2=1.1341
http://cvs.savannah.gnu.org/viewcvs/gnash/utilities/dumpshm.cpp?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1340
retrieving revision 1.1341
diff -u -b -r1.1340 -r1.1341
--- ChangeLog 22 Oct 2006 10:55:04 -0000 1.1340
+++ ChangeLog 22 Oct 2006 11:18:52 -0000 1.1341
@@ -2,6 +2,7 @@
* configure.ac: Don't look for KDE if not --enable-plugin.
Wrong amount of args to 'test'. AC_DEFINE(KLASH...).
+ * utilities/dumpshm.cpp: Fixed getopt for non-GNUC.
2006-10-21 Rob Savoye <address@hidden>
Index: utilities/dumpshm.cpp
===================================================================
RCS file: /sources/gnash/gnash/utilities/dumpshm.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- utilities/dumpshm.cpp 22 Oct 2006 01:00:54 -0000 1.1
+++ utilities/dumpshm.cpp 22 Oct 2006 11:18:52 -0000 1.2
@@ -42,7 +42,16 @@
#include <stdarg.h>
#include <sys/stat.h>
-#include <unistd.h>
+extern "C"{
+ #include <unistd.h>
+#ifdef HAVE_GETOPT_H
+ #include <getopt.h>
+#endif
+#ifndef __GNUC__
+ extern int optind, getopt(int, char *const *, const char *);
+ extern char *optarg;
+#endif
+}
#include <dirent.h>
#include <sys/types.h>
#include <sys/mman.h>
- [Gnash-commit] gnash ChangeLog utilities/dumpshm.cpp,
Markus Gothe <=