Fix build on 6.x after changing swab() prototypes in <unistd.h> and

<string.h>
This commit is contained in:
Kirill Ponomarev 2005-01-09 00:58:22 +00:00
parent b3388de1cd
commit 419100a033
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125905

View file

@ -0,0 +1,18 @@
$FreeBSD$
--- stdfiletrack.c.orig
+++ stdfiletrack.c
@@ -21,7 +21,12 @@
#include "dependencies.h"
#ifndef __svr4__
+#include <osreldate.h>
+#if __FreeBSD_version >= 600007
+void swab(const void *from,void *to,ssize_t n);
+#else
void swab(const void *from,void *to,size_t n);
+#endif
#endif
#include "tracks.h"