[hackers] [9base] applied Paul Onyschuk's remarks || anselm

From: <hg_AT_suckless.org>
Date: Wed, 29 Feb 2012 20:52:12 +0100 (CET)

changeset: 94:3c9842ed0141
tag: tip
user: anselm_AT_garbe.us
date: Wed Feb 29 20:52:27 2012 +0100
files: LICENSE lib9/dirfwstat.c rc/Makefile sam/Makefile
description:
applied Paul Onyschuk's remarks


diff -r 3be0052920ac -r 3c9842ed0141 LICENSE
--- a/LICENSE Tue Feb 28 18:50:48 2012 +0100
+++ b/LICENSE Wed Feb 29 20:52:27 2012 +0100
_AT_@ -2,7 +2,7 @@
 
 MIT/X Consortium License
 
-© 2005-2010 Anselm R Garbe <anselm_AT_garbe.us>
+© 2005-2012 Anselm R Garbe <anselm_AT_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 -r 3be0052920ac -r 3c9842ed0141 lib9/dirfwstat.c
--- a/lib9/dirfwstat.c Tue Feb 28 18:50:48 2012 +0100
+++ b/lib9/dirfwstat.c Wed Feb 29 20:52:27 2012 +0100
_AT_@ -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 -r 3be0052920ac -r 3c9842ed0141 rc/Makefile
--- a/rc/Makefile Tue Feb 28 18:50:48 2012 +0100
+++ b/rc/Makefile Wed Feb 29 20:52:27 2012 +0100
_AT_@ -50,4 +50,4 @@
 
 ${TARG}: ${OFILES}
         _AT_echo LD ${TARG}
- _AT_${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -lm -L${PREFIX}/lib -L../lib9 -l9
+ _AT_${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -L${PREFIX}/lib -L../lib9 -l9 -lm
diff -r 3be0052920ac -r 3c9842ed0141 sam/Makefile
--- a/sam/Makefile Tue Feb 28 18:50:48 2012 +0100
+++ b/sam/Makefile Wed Feb 29 20:52:27 2012 +0100
_AT_@ -34,4 +34,4 @@
 
 ${TARG}: ${OFILES}
         _AT_echo LD ${TARG}
- _AT_${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -lm -L${PREFIX}/lib -L../lib9 -l9
+ _AT_${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -L${PREFIX}/lib -L../lib9 -l9 -lm
Received on Wed Feb 29 2012 - 20:52:12 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 29 2012 - 21:00:12 CET