[hackers] [9base] applied Juliens 9base fixes on OBSD || anselm

From: <hg_AT_suckless.org>
Date: Sun, 12 Feb 2012 23:13:14 +0100 (CET)

changeset: 92:12764b326f2b
tag: tip
user: anselm_AT_garbe.us
date: Sun Feb 12 23:13:17 2012 +0100
files: lib9/dirread.c rc/havefork.c rc/haventfork.c
description:
applied Juliens 9base fixes on OBSD


diff -r e1367bd92b7a -r 12764b326f2b lib9/dirread.c
--- a/lib9/dirread.c Tue Jul 05 19:25:18 2011 +0100
+++ b/lib9/dirread.c Sun Feb 12 23:13:17 2012 +0100
_AT_@ -18,13 +18,20 @@
         nn = getdirentries(fd, (void*)buf, n, &off);
         return nn;
 }
-#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#elif defined(__APPLE__) || defined(__FreeBSD__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
         long off;
         return getdirentries(fd, (void*)buf, n, &off);
 }
+#elif defined(__OpenBSD__)
+static int
+mygetdents(int fd, struct dirent *buf, int n)
+{
+ off_t off;
+ return getdirentries(fd, (void*)buf, n, &off);
+}
 #elif defined(__sun__) || defined(__NetBSD__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
diff -r e1367bd92b7a -r 12764b326f2b rc/havefork.c
--- a/rc/havefork.c Tue Jul 05 19:25:18 2011 +0100
+++ b/rc/havefork.c Sun Feb 12 23:13:17 2012 +0100
_AT_@ -239,4 +239,4 @@
         }
         addwaitpid(pid);
         return pid;
-}
\ No newline at end of file
+}
diff -r e1367bd92b7a -r 12764b326f2b rc/haventfork.c
--- a/rc/haventfork.c Tue Jul 05 19:25:18 2011 +0100
+++ b/rc/haventfork.c Sun Feb 12 23:13:17 2012 +0100
_AT_@ -227,4 +227,4 @@
         }
         free(argv);
         return -1;
-}
\ No newline at end of file
+}
Received on Sun Feb 12 2012 - 23:13:14 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 12 2012 - 23:24:05 CET