Skip to content

Commit

Permalink
benchmarks/super-smack: fix build for GCC and DF (taken from dports)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmarino committed Dec 18, 2016
1 parent 7780b76 commit d7f8cff
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions benchmarks/super-smack/files/patch-src_client.cc
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
10 changes: 10 additions & 0 deletions benchmarks/super-smack/files/patch-src_dictionary.h
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>

0 comments on commit d7f8cff

Please sign in to comment.