benchmarks/super-smack: fix build for GCC and DF (taken from dports)

This commit is contained in:
John Marino 2016-12-18 04:10:01 +00:00
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

View 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

View 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>