The following comes from Petr Salinger <[email protected]>, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537246

ksh apparently fails to build on Debian GNU/kFreeBSD. It needs better
detection of utimensat() availability. The patch below fixes this. The
patch was for the 2009-05-05 version but applies on 2010-03-01 too. I'd
appreciate if you could apply this.

Thanks

Oliver

--- ksh-93t+.orig/src/lib/libast/features/tvlib

+++ ksh-93t+/src/lib/libast/features/tvlib
@@ -1,7 +1,20 @@
 hdr    time
 lib    clock_settime,gettimeofday,settimeofday,stime,utimes
 lib    nanosleep,usleep
-lib    utimensat -D_ATFILE_SOURCE sys/stat.h
+lib    utimensat -D_ATFILE_SOURCE sys/stat.h link{
+       #include <fcntl.h>
+       static struct timespec ts[2];
+       #ifdef __stub_utimensat
+       #error only stub variant available
+       #endif
+       int
+       main()
+       {
+               ts[0].tv_nsec = UTIME_NOW;
+               ts[1].tv_nsec = UTIME_OMIT;
+               return utimensat(AT_FDCWD, ".", ts, AT_SYMLINK_NOFOLLOW) != 0;
+       }
+}end
 
 if ! mem timeval.tv_sec sys/time.h {
        struct timeval
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to