Assume less-ancient POSIX support.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 00:41:01 +0000 (17:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Apr 2012 00:41:01 +0000 (17:41 -0700)
* 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>.

lib-src/ChangeLog
lib-src/update-game-score.c

index ac3e0a6..ea5f5a2 100644 (file)
@@ -1,3 +1,10 @@
+2012-04-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <lekktu@gmail.com>
 
        * emacsclient.c (decode_options) [WINDOWSNT]:
index a32bd6d..e0c9405 100644 (file)
@@ -46,10 +46,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #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;