forked from pfsense/FreeBSD-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
benchmarks/super-smack: fix build for GCC and DF (taken from dports)
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- src/client.cc.orig 2005-05-30 10:42:52 UTC | ||
+++ src/client.cc | ||
@@ -34,7 +34,7 @@ using namespace std; | ||
|
||
#define MAX_VAR_BUF 512 | ||
|
||
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !(defined(__MACH__) && defined(__APPLE__)) | ||
+#if !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !(defined(__MACH__) && defined(__APPLE__)) | ||
#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) | ||
/* union semun is defined by including <sys/sem.h> */ | ||
#else | ||
@@ -57,7 +57,7 @@ using namespace std; | ||
}; | ||
|
||
#endif | ||
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !(defined(__MACH__) && defined(__APPLE__)) | ||
+#if !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !(defined(__MACH__) && defined(__APPLE__)) | ||
#define SUPER_SMACK_RESTART ERESTART | ||
#else | ||
#define SUPER_SMACK_RESTART EINTR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- src/dictionary.h.orig 2003-05-15 00:14:52 UTC | ||
+++ src/dictionary.h | ||
@@ -22,6 +22,7 @@ using namespace std; | ||
#include "../config.h" | ||
|
||
#include <string> | ||
+#include <cstring> | ||
#include <vector> | ||
#include <time.h> | ||
#include <stdlib.h> |