freebsd-ports/sysutils/gtoaster/files/patch-stdfiletrack.c
Tilman Keskinoz 276e22cb9a Fix build after MFC of swab prototype change.
Unfortunately trhodes did not bump __FreeBSD_version, so use an
approximation.
2006-01-20 15:20:43 +00:00

18 lines
321 B
C

$FreeBSD$
--- stdfiletrack.c.orig
+++ stdfiletrack.c
@@ -21,7 +21,12 @@
#include "dependencies.h"
#ifndef __svr4__
+#include <osreldate.h>
+#if __FreeBSD_version >= 504102
+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"