diff --git a/scanroutines.c b/scanroutines.c
index 2c5f33a..edc7c29 100644
--- scanroutines.c
+++ scanroutines.c
@@ -20,6 +20,8 @@
along with this library. If not, see .
*/
+#define _GNU_SOURCE 1
+#include
#include
#include
diff --git a/targetmem.h b/targetmem.h
index b62a4f2..25b5c9c 100644
--- targetmem.h
+++ targetmem.h
@@ -24,6 +24,9 @@
#ifndef TARGETMEM_H
#define TARGETMEM_H
+#define _GNU_SOURCE 1
+#include
+
#include
#include
#include