]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/kismet/files/glibc3.3.2-getopt-throw.diff
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / kismet / files / glibc3.3.2-getopt-throw.diff
1 --- getopt.h.o  2004-10-10 19:48:48.409249432 +0200
2 +++ getopt.h    2004-10-10 19:51:42.610766776 +0200
3 @@ -20,6 +20,14 @@
4  
5  #include "config.h"
6  
7 +#ifndef __THROW
8 +# if defined __cplusplus && __GNUC_PREREQ (2,8)
9 +#  define __THROW       throw ()
10 +# else
11 +#  define __THROW
12 +# endif
13 +#endif
14 +
15  #ifdef __cplusplus
16  extern "C" {
17  #endif
18 @@ -103,15 +111,15 @@
19  /* Many other libraries have conflicting prototypes for getopt, with
20     differences in the consts, in stdlib.h.  To avoid compilation
21     errors, only prototype getopt for the GNU C library.  */
22 -extern int getopt (int argc, char *const *argv, const char *shortopts);
23 +extern int getopt (int argc, char *const *argv, const char *shortopts) __THROW;
24  #else /* not __GNU_LIBRARY__ */
25  /* extern int getopt (); */
26  #endif /* not __GNU_LIBRARY__ */
27  extern int getopt_long (int argc, char *const *argv, const char *shortopts,
28 -                       const struct option *longopts, int *longind);
29 +                       const struct option *longopts, int *longind) __THROW;
30  extern int getopt_long_only (int argc, char *const *argv,
31                              const char *shortopts,
32 -                            const struct option *longopts, int *longind);
33 +                            const struct option *longopts, int *longind) __THROW;
34  
35  /* Internal only.  Users should not call this directly.  */
36  extern int _getopt_internal (int argc, char *const *argv,