[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#6832) fix #elif statement

Full_Name: Naohiro Aota
Version: 2.4.23
OS: Gentoo/FreeBSD 8.0
URL: http://elisp.net/openldap.patch
Submission from: (NULL) (

There are some #elif statements like "#elif FOOBAR", which should be "#elif
defined(FOOBAR)". These statements might cause build error like this:

i686-gentoo-freebsd8.0-gcc -O2 -pipe -march=prescott --param l1-cache-size=16
--param l1-cache-line-size=64 -mtune=prescott -D_GNU_SOURCE -I../../include     
  -I../../include   -I/usr/include/db4.8    -I/usr/include/db4.8  -c -o detach.o
detach.c:131:7: error: missing binary operator before token "long"
gmake[2]: *** [detach.o] Error 1
gmake[2]: Leaving directory
gmake[1]: *** [all-common] Error 1
gmake[1]: Leaving directory
gmake: *** [all-common] Error 1

Build Environment:
  Gentoo/FreeBSD 8.0
  gcc 4.4.4

URL is a address of the patch to fix the statements.