1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-05 19:35:52 +03:00

Include <stdlib.h> in argp examples.

This commit is contained in:
Joseph Myers
2012-02-17 01:13:15 +00:00
parent 0a0a5bd4f1
commit 35c47e37b9
5 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2012-02-17 Joseph Myers <joseph@codesourcery.com>
[BZ #10140]
* manual/examples/argp-ex1.c: Include <stdlib.h>.
* manual/examples/argp-ex2.c: Likewise.
* manual/examples/argp-ex3.c: Likewise.
2012-02-16 Richard Henderson <rth@redhat.com> 2012-02-16 Richard Henderson <rth@redhat.com>
* sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files. * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.

4
NEWS
View File

@@ -9,8 +9,8 @@ Version 2.16
* The following bugs are resolved with this release: * The following bugs are resolved with this release:
411, 4822, 11494, 13525, 13526, 13527, 13528, 13529, 13531, 13532, 13533, 411, 4822, 10140, 11494, 13525, 13526, 13527, 13528, 13529, 13531, 13532,
13547, 13530, 13551, 13552, 13553, 13555, 13559, 13583, 13618 13533, 13547, 13530, 13551, 13552, 13553, 13555, 13559, 13583, 13618
* ISO C11 support: * ISO C11 support:

View File

@@ -5,6 +5,7 @@
messages and exit when there are any arguments, and print messages and exit when there are any arguments, and print
a (rather pointless) messages for --help. */ a (rather pointless) messages for --help. */
#include <stdlib.h>
#include <argp.h> #include <argp.h>
int main (int argc, char **argv) int main (int argc, char **argv)

View File

@@ -19,6 +19,7 @@
for a given program, even if it uses different argument for a given program, even if it uses different argument
parsers for various tasks). */ parsers for various tasks). */
#include <stdlib.h>
#include <argp.h> #include <argp.h>
const char *argp_program_version = const char *argp_program_version =

View File

@@ -52,6 +52,7 @@
An options vector should be terminated by an option with all fields zero. */ An options vector should be terminated by an option with all fields zero. */
#include <stdlib.h>
#include <argp.h> #include <argp.h>
const char *argp_program_version = const char *argp_program_version =