|
@@ -23,7 +23,8 @@
|
|
|
/* To exclude some unwanted junk.... */
|
|
/* To exclude some unwanted junk.... */
|
|
|
#undef emacs
|
|
#undef emacs
|
|
|
#include <features.h>
|
|
#include <features.h>
|
|
|
-
|
|
|
|
|
|
|
+/* unistd.h must be included with _LIBC defined: we need smallint */
|
|
|
|
|
+#include <unistd.h>
|
|
|
#ifdef __UCLIBC__
|
|
#ifdef __UCLIBC__
|
|
|
# undef _LIBC
|
|
# undef _LIBC
|
|
|
# define _REGEX_RE_COMP
|
|
# define _REGEX_RE_COMP
|
|
@@ -33,7 +34,6 @@
|
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
|
#include <string.h>
|
|
#include <string.h>
|
|
|
-#include <unistd.h>
|
|
|
|
|
#include <stdio.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
/* AIX requires this to be the first thing in the file. */
|
|
/* AIX requires this to be the first thing in the file. */
|
|
@@ -263,7 +263,7 @@ static void
|
|
|
init_syntax_once (void)
|
|
init_syntax_once (void)
|
|
|
{
|
|
{
|
|
|
register int c;
|
|
register int c;
|
|
|
- static int done = 0;
|
|
|
|
|
|
|
+ static smallint done = 0;
|
|
|
|
|
|
|
|
if (done)
|
|
if (done)
|
|
|
return;
|
|
return;
|