mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
benchmarks/super-smack: fix build for GCC and DF (taken from dports)
This commit is contained in:
parent
50f4fb664b
commit
2af69b14e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428828
2 changed files with 30 additions and 0 deletions
20
benchmarks/super-smack/files/patch-src_client.cc
Normal file
20
benchmarks/super-smack/files/patch-src_client.cc
Normal file
|
@ -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
|
10
benchmarks/super-smack/files/patch-src_dictionary.h
Normal file
10
benchmarks/super-smack/files/patch-src_dictionary.h
Normal file
|
@ -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>
|
Loading…
Add table
Reference in a new issue