Mercurial > emacs
comparison lib-src/getopt1.c @ 26083:134b57acef68
Add support for large files. Merge glibc 2.1.2.
* b2m.c, emacsclient.c, emacsserver.c, fakemail.c, make-docfile.c,
movemail.c, pop.c:
Do not include <stdlib.h>, as <config.h> does this now.
* b2m.c, emacsserver.c, etags.c, profile.c:
Include <config.h> before any system include files.
* emacsclient.c, emacsserver.c, fakemail.c, movemail.c, pop.c,
test-distrib.c:
(read, write, open, close): Do not undef.
* getopt.c, getopt1.c: Adopt glibc 2.1.2, with the following fix:
(const): Do not define if HAVE_CONFIG_H; that's config.h's job.
* getopt.h: Adopt glibc 2.1.2.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Tue, 19 Oct 1999 07:17:20 +0000 |
parents | c8c409640bf3 |
children | 08f82ce16ede |
comparison
equal
deleted
inserted
replaced
26082:3002a7df8351 | 26083:134b57acef68 |
---|---|
1 /* getopt_long and getopt_long_only entry points for GNU getopt. | 1 /* getopt_long and getopt_long_only entry points for GNU getopt. |
2 Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 | 2 Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | |
5 NOTE: The canonical source of this file is maintained with the GNU C Library. | 4 NOTE: The canonical source of this file is maintained with the GNU C Library. |
6 Bugs can be reported to bug-glibc@gnu.org. | 5 Bugs can be reported to bug-glibc@gnu.org. |
7 | 6 |
8 This program is free software; you can redistribute it and/or modify it | 7 This program is free software; you can redistribute it and/or modify it |
9 under the terms of the GNU General Public License as published by the | 8 under the terms of the GNU General Public License as published by the |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 GNU General Public License for more details. | 15 GNU General Public License for more details. |
17 | 16 |
18 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
19 along with this program; if not, write to the Free Software | 18 along with this program; if not, write to the Free Software Foundation, |
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 19 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
21 USA. */ | |
22 | 20 |
23 #ifdef HAVE_CONFIG_H | 21 #ifdef HAVE_CONFIG_H |
24 #include <config.h> | 22 #include <config.h> |
25 #endif | 23 #else |
26 | |
27 #include "getopt.h" | |
28 | |
29 #if !defined __STDC__ || !__STDC__ | 24 #if !defined __STDC__ || !__STDC__ |
30 /* This is a separate conditional since some stdc systems | 25 /* This is a separate conditional since some stdc systems |
31 reject `defined (const)'. */ | 26 reject `defined (const)'. */ |
32 #ifndef const | 27 #ifndef const |
33 #define const | 28 #define const |
34 #endif | 29 #endif |
35 #endif | 30 #endif |
31 #endif | |
32 | |
33 #include "getopt.h" | |
36 | 34 |
37 #include <stdio.h> | 35 #include <stdio.h> |
38 | 36 |
39 /* Comment out all this code if we are using the GNU C Library, and are not | 37 /* Comment out all this code if we are using the GNU C Library, and are not |
40 actually compiling the library itself. This code is part of the GNU C | 38 actually compiling the library itself. This code is part of the GNU C |