1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/coda5_server/files/patch-ae
Kris Kennaway a3515324ff Fix build on current and remove BROKEN tag
PR:		ports/48830
Submitted by:	tjr
2003-03-05 09:07:23 +00:00

17 lines
644 B
Plaintext

--- coda-src/vice/srv.cc.orig Sun Mar 2 17:49:12 2003
+++ coda-src/vice/srv.cc Sun Mar 2 17:54:40 2003
@@ -1270,8 +1270,13 @@
char buf[100], buf2[100]; /* can't believe there will be more logs! */
struct dirent **namelist = NULL;
+#if __FreeBSD__ >= 5
+ count = scandir(".", &namelist, (int (*)(dirent *)) xselect,
+ (int (*)(const void *, const void *)) compar);
+#else
count = scandir(".", &namelist, (int (*)(const dirent *)) xselect,
(int (*)(const void *, const void *)) compar);
+#endif
/* It is safe now to blindly rename */
for (i = 0; i < count; i++) {
sprintf(buf, "SrvLog-%d", count-i);