9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

commit 4644257fec39484e3dedb9dc9688105bc2605b98
parent 422c761c28840f03071ac83a3edbfc6ae04d1921
Author: anselm@garbe.us <unknown>
Date:   Wed, 29 Feb 2012 20:52:27 +0100

applied Paul Onyschuk's remarks
Diffstat:
MLICENSE | 2+-
Mlib9/dirfwstat.c | 9+++++++++
Mrc/Makefile | 2+-
Msam/Makefile | 2+-
4 files changed, 12 insertions(+), 3 deletions(-)

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"), 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 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 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