applied Paul Onyschuk's remarks - 9base - revived minimalist port of Plan 9 userland to Unix
 (HTM) git clone git://git.suckless.org/9base
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4644257fec39484e3dedb9dc9688105bc2605b98
 (DIR) parent 422c761c28840f03071ac83a3edbfc6ae04d1921
 (HTM) Author: anselm@garbe.us <unknown>
       Date:   Wed, 29 Feb 2012 20:52:27 +0100
       
       applied Paul Onyschuk's remarks
       Diffstat:
         M LICENSE                             |       2 +-
         M lib9/dirfwstat.c                    |       9 +++++++++
         M rc/Makefile                         |       2 +-
         M sam/Makefile                        |       2 +-
       
       4 files changed, 12 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/LICENSE b/LICENSE
       @@ -2,7 +2,7 @@ The rare bits touched by Anselm R. Garbe are under following LICENSE:
        
        MIT/X Consortium License
        
       -© 2005-2010 Anselm R Garbe <anselm@garbe.us>
       +© 2005-2012 Anselm R Garbe <anselm@garbe.us>
        
        Permission is hereby granted, free of charge, to any person obtaining a
        copy of this software and associated documentation files (the "Software"),
 (DIR) diff --git a/lib9/dirfwstat.c b/lib9/dirfwstat.c
       @@ -7,6 +7,15 @@
        #if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__)
        /* do nothing -- futimes exists and is fine */
        
       +# if defined(__UCLIBC__)
       +/* use futimesat */
       +static int
       +futimes(int fd, struct timeval *tv)
       +{
       +        return futimesat(fd, 0, tv);
       +}
       +
       +# endif
        #elif defined(__SunOS5_9__)
        /* use futimesat */
        static int
 (DIR) diff --git a/rc/Makefile b/rc/Makefile
       @@ -50,4 +50,4 @@ clean:
        
        ${TARG}: ${OFILES}
                @echo LD ${TARG}
       -        @${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -lm -L${PREFIX}/lib -L../lib9 -l9
       +        @${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -L${PREFIX}/lib -L../lib9 -l9 -lm
 (DIR) diff --git a/sam/Makefile b/sam/Makefile
       @@ -34,4 +34,4 @@ clean:
        
        ${TARG}: ${OFILES}
                @echo LD ${TARG}
       -        @${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -lm -L${PREFIX}/lib -L../lib9 -l9
       +        @${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -L${PREFIX}/lib -L../lib9 -l9 -lm