emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107916: Assume less-ancient POSIX su


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107916: Assume less-ancient POSIX support.
Date: Sun, 15 Apr 2012 17:41:01 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107916
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2012-04-15 17:41:01 -0700
message:
  Assume less-ancient POSIX support.
  
  * update-game-score.c: Include <getopt.h> rather than rolling our
  own decls for optarg, optind, opterr.  See
  <http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html>.
modified:
  lib-src/ChangeLog
  lib-src/update-game-score.c
=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2012-04-15 02:59:30 +0000
+++ b/lib-src/ChangeLog 2012-04-16 00:41:01 +0000
@@ -1,3 +1,10 @@
+2012-04-16  Paul Eggert  <address@hidden>
+
+       Assume less-ancient POSIX support.
+       * update-game-score.c: Include <getopt.h> rather than rolling our
+       own decls for optarg, optind, opterr.  See
+       <http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html>.
+
 2012-04-14  Juanma Barranquero  <address@hidden>
 
        * emacsclient.c (decode_options) [WINDOWSNT]:

=== modified file 'lib-src/update-game-score.c'
--- a/lib-src/update-game-score.c       2012-01-19 07:21:25 +0000
+++ b/lib-src/update-game-score.c       2012-04-16 00:41:01 +0000
@@ -46,10 +46,7 @@
 #include <fcntl.h>
 #endif
 #include <sys/stat.h>
-
-/* Needed for SunOS4, for instance.  */
-extern char *optarg;
-extern int optind, opterr;
+#include <getopt.h>
 
 static int usage (int err) NO_RETURN;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]