aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/obsolete/kismet/files/glibc3.3.2-getopt-throw.diff
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2010-10-02 09:17:48 +0200
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2010-10-02 09:20:52 +0200
commitc18ff9b70f29489f17a0aca222180106eabd6495 (patch)
treee38970c8b496b2c3bbce47c4f00cc8c9147dcd50 /recipes/obsolete/kismet/files/glibc3.3.2-getopt-throw.diff
parent9b973e6624a2e6050c2fe1eaa98c3e7b70e9cd04 (diff)
downloadopenembedded-c18ff9b70f29489f17a0aca222180106eabd6495.tar.gz
kismet : moved unused files to obsolete dir
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/obsolete/kismet/files/glibc3.3.2-getopt-throw.diff')
-rw-r--r--recipes/obsolete/kismet/files/glibc3.3.2-getopt-throw.diff36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/obsolete/kismet/files/glibc3.3.2-getopt-throw.diff b/recipes/obsolete/kismet/files/glibc3.3.2-getopt-throw.diff
new file mode 100644
index 0000000000..7032e3d736
--- /dev/null
+++ b/recipes/obsolete/kismet/files/glibc3.3.2-getopt-throw.diff
@@ -0,0 +1,36 @@
+--- getopt.h.o 2004-10-10 19:48:48.409249432 +0200
++++ getopt.h 2004-10-10 19:51:42.610766776 +0200
+@@ -20,6 +20,14 @@
+
+ #include "config.h"
+
++#ifndef __THROW
++# if defined __cplusplus && __GNUC_PREREQ (2,8)
++# define __THROW throw ()
++# else
++# define __THROW
++# endif
++#endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+@@ -103,15 +111,15 @@
+ /* Many other libraries have conflicting prototypes for getopt, with
+ differences in the consts, in stdlib.h. To avoid compilation
+ errors, only prototype getopt for the GNU C library. */
+-extern int getopt (int argc, char *const *argv, const char *shortopts);
++extern int getopt (int argc, char *const *argv, const char *shortopts) __THROW;
+ #else /* not __GNU_LIBRARY__ */
+ /* extern int getopt (); */
+ #endif /* not __GNU_LIBRARY__ */
+ extern int getopt_long (int argc, char *const *argv, const char *shortopts,
+- const struct option *longopts, int *longind);
++ const struct option *longopts, int *longind) __THROW;
+ extern int getopt_long_only (int argc, char *const *argv,
+ const char *shortopts,
+- const struct option *longopts, int *longind);
++ const struct option *longopts, int *longind) __THROW;
+
+ /* Internal only. Users should not call this directly. */
+ extern int _getopt_internal (int argc, char *const *argv,