Package: zsh
Version: 4.3.10-2
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd

Heya Clint,

please also turn on extensions when __GLIBC__ is detected, fixing the
FTBFS on GNU/kFreeBSD due to missing lstat et al.:
| gcc -c -I.  -DHAVE_CONFIG_H -Wall -g -O2  -o compat.o ../../Src/compat.c
| ../../Src/compat.c: In function 'zgetdir':
| ../../Src/compat.c:343: warning: implicit declaration of function 'lstat'
| ../../Src/compat.c: In function 'zchdir':
| ../../Src/compat.c:451: warning: implicit declaration of function 'fchdir'
| gcc -c -I.  -DHAVE_CONFIG_H -Wall -g -O2  -o cond.o ../../Src/cond.c
| ../../Src/cond.c: In function 'evalcond':
| ../../Src/cond.c:351: error: 'struct stat' has no member named 'st_atim'
| ../../Src/cond.c:351: error: 'struct stat' has no member named 'st_mtim'
| ../../Src/cond.c:370: error: 'struct stat' has no member named 'st_mtim'
| ../../Src/cond.c:376: error: 'struct stat' has no member named 'st_mtim'
| ../../Src/cond.c:377: error: 'struct stat' has no member named 'st_mtim'
| ../../Src/cond.c: In function 'dolstat':
| ../../Src/cond.c:457: warning: implicit declaration of function 'lstat'
| make[3]: *** [cond.o] Error 1

Full build log linked from:
https://buildd.debian.org/~luk/status/package.php?p=zsh&suite=unstable

Patch attached.

Thanks for your time.

Mraw,
KiBi.
--- a/Src/system.h
+++ b/Src/system.h
@@ -37,7 +37,7 @@
 #endif
 #endif
 
-#if defined(__linux) || defined(__GNU__)
+#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__)
 /*
  * Turn on numerous extensions.
  * This is in order to get the functions for manipulating /dev/ptmx.

Reply via email to