1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/devel/raknet/files/patch-Source-FileList.cpp
Thierry Thomas 1907f56a51 This patch updates devel/raknet to version 3.08.
Version 2.0.13 was an old version and faced a checksum mismatch problem
because the port was downloading a generic RakNet.zip file (with no
version). This new version of the port uses a fixed version to ensure
the port will remain fetchable. It also now uses sourceforge as main
repository.

I'll take maintainership for it.

PR:		ports/122169
Submitted by:	Ganael Laplanche <ganael.laplanche (at) martymac.com>
2008-04-07 20:49:41 +00:00

22 lines
661 B
C++

--- Source/FileList.cpp.orig 2008-03-17 07:58:04.000000000 +0100
+++ Source/FileList.cpp 2008-03-27 09:40:00.000000000 +0100
@@ -2,7 +2,7 @@
#include <assert.h>
#if defined(_WIN32) || defined(__CYGWIN__)
#include <io.h>
-#elif !defined ( __APPLE__ ) && !defined ( __APPLE_CC__ ) && !defined ( __PPC__ )
+#elif !defined ( __APPLE__ ) && !defined ( __APPLE_CC__ ) && !defined ( __PPC__ ) && !defined ( __FreeBSD__ )
#include <sys/io.h>
#endif
#include <stdio.h>
@@ -26,7 +26,9 @@
#elif defined(_WIN32)
#include <malloc.h>
#else
+#if !defined ( __FreeBSD__ )
#include <alloca.h>
+#endif
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>