summaryrefslogtreecommitdiff
path: root/src/tools/operf
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-08-18 15:56:55 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-08-21 10:25:19 +0200
commit8f58e5a3ec0e4a15fc8ae0911cc864f5dbf86c6e (patch)
tree0535742162921dc0d19c16f5b02d2f1c8f4fc493 /src/tools/operf
parenteefae235dd7af96eef3dc4f82f706170c379d260 (diff)
downloadouroboros-8f58e5a3ec0e4a15fc8ae0911cc864f5dbf86c6e.tar.gz
ouroboros-8f58e5a3ec0e4a15fc8ae0911cc864f5dbf86c6e.zip
build: Revise the build system
This revises the build system to have configuration per system component. System settings can now be set using cmake. The standard compliance defines were removed from configuration header and are set in the sources where needed. Also some small code refactors, such as moving the data for shims out of the ipcp structure to the respective shims were performed.
Diffstat (limited to 'src/tools/operf')
-rw-r--r--src/tools/operf/operf.c1
-rw-r--r--src/tools/operf/operf_client.c4
-rw-r--r--src/tools/operf/operf_server.c4
3 files changed, 1 insertions, 8 deletions
diff --git a/src/tools/operf/operf.c b/src/tools/operf/operf.c
index d2dfeaa3..e54fbc6b 100644
--- a/src/tools/operf/operf.c
+++ b/src/tools/operf/operf.c
@@ -21,6 +21,7 @@
*/
#define _POSIX_C_SOURCE 199506L
+#define __XSI_VISIBLE 500
#include <ouroboros/fqueue.h>
#include <ouroboros/dev.h>
diff --git a/src/tools/operf/operf_client.c b/src/tools/operf/operf_client.c
index a905b05e..4ad26d13 100644
--- a/src/tools/operf/operf_client.c
+++ b/src/tools/operf/operf_client.c
@@ -24,10 +24,6 @@
#include <ouroboros/fcntl.h>
#include <ouroboros/time_utils.h>
-#ifdef __FreeBSD__
-#define __XSI_VISIBLE 500
-#endif
-
#include <signal.h>
#include <stdlib.h>
#include <sys/time.h>
diff --git a/src/tools/operf/operf_server.c b/src/tools/operf/operf_server.c
index 3b43ece4..c016ad63 100644
--- a/src/tools/operf/operf_server.c
+++ b/src/tools/operf/operf_server.c
@@ -20,10 +20,6 @@
* Foundation, Inc., http://www.fsf.org/about/contact/.
*/
-#ifdef __FreeBSD__
-#define __XSI_VISIBLE 500
-#endif
-
#include <stdlib.h>
#include <signal.h>
#include <arpa/inet.h>