emacs-devel
[Top][All Lists]
Advanced

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

Re: master f6fb2b9e1f: Port better to C23 bool+true+false keywords


From: Po Lu
Subject: Re: master f6fb2b9e1f: Port better to C23 bool+true+false keywords
Date: Wed, 28 Sep 2022 19:15:20 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

One of the gnulib changes results in this on MS-DOS:

In file included from ./stdlib.h:100,
                 from ./stdlib.h:36,
                 from getopt.c:27:
./unistd.h:663:3: #error "Please include config.h first."
In file included from ./stdlib.h:100,
                 from ./stdlib.h:36,
                 from getopt.c:27:
./unistd.h:1058: error: syntax error before "extern"
In file included from ./stdlib.h:36,
                 from getopt.c:27:
./stdlib.h:804: error: syntax error before "extern"
getopt.c:381: error: syntax error before "int"
getopt.c: In function `_getopt_initialize':
getopt.c:388: error: `d' undeclared (first use in this function)
getopt.c:388: error: (Each undeclared identifier is reported only once
getopt.c:388: error: for each function it appears in.)
getopt.c:395: error: `optstring' undeclared (first use in this function)
getopt.c:405: error: `posixly_correct' undeclared (first use in this function)

that is after I added

/^ASSERT_H *=/s/@[^@\n]*@/alloca.h/

and

s/= @GL_GENERATE_ASSERT_H_CONDITION@/= 0/

to sedlibmk.inp, and

/^#undef HAVE_STDBOOL_H/#define HAVE_STDBOOL_H/

to sed2v2.inp.  AFAICT, both headers are present in DJGPP.

_LIBC is also not defined, so getopt is really including config.h.  Any
ideas?


reply via email to

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