diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/kismet/files/glibc3.3.2-getopt-throw.diff | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/kismet/files/glibc3.3.2-getopt-throw.diff')
-rw-r--r-- | recipes/kismet/files/glibc3.3.2-getopt-throw.diff | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/kismet/files/glibc3.3.2-getopt-throw.diff b/recipes/kismet/files/glibc3.3.2-getopt-throw.diff new file mode 100644 index 0000000000..7032e3d736 --- /dev/null +++ b/recipes/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, |