Source: openldap
Version: 2.4.21-1
Severity: serious
Justification: FTBFS
User: debian-...@lists.debian.org
Usertags: kfreebsd

Hi,

your package no longer builds on kfreebsd-*:
| 
/build/buildd-openldap_2.4.21-1-kfreebsd-amd64-VWAqZY/openldap-2.4.21/libraries/liblutil/detach.c:131:7:
 error: missing binary operator before token "long"
| make[3]: *** [detach.o] Error 1

Full build logs:
  https://buildd.debian.org/status/package.php?suite=unstable&p=openldap

I think it's just a matter of changing if FOO into if defined(FOO) as
seen in the attached patch. Once applied, the build was successful on my
porterbox.

Mraw,
KiBi.
--- a/libraries/liblutil/detach.c
+++ b/libraries/liblutil/detach.c
@@ -128,7 +128,7 @@
 
 #ifdef HAVE_SETSID
                (void) setsid();
-#elif TIOCNOTTY
+#elif defined(TIOCNOTTY)
                if ( (sd = open( "/dev/tty", O_RDWR )) != -1 ) {
                        (void) ioctl( sd, TIOCNOTTY, NULL );
                        (void) close( sd );

Reply via email to