summaryrefslogtreecommitdiff
path: root/tdb
diff options
context:
space:
mode:
Diffstat (limited to 'tdb')
-rw-r--r--tdb/spinlock.c1
-rw-r--r--tdb/tdb.c1
-rw-r--r--tdb/tdb.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/tdb/spinlock.c b/tdb/spinlock.c
index 9bf42adfcf..50cd952c72 100644
--- a/tdb/spinlock.c
+++ b/tdb/spinlock.c
@@ -28,6 +28,7 @@
#endif
#ifdef STANDALONE
+#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/tdb/tdb.c b/tdb/tdb.c
index 772602ed5b..9ae57a974e 100644
--- a/tdb/tdb.c
+++ b/tdb/tdb.c
@@ -52,6 +52,7 @@
#include <config.h>
#endif
+#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
diff --git a/tdb/tdb.h b/tdb/tdb.h
index 839d5b1516..cac172adce 100644
--- a/tdb/tdb.h
+++ b/tdb/tdb.h
@@ -25,6 +25,7 @@
extern "C" {
#endif
+#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
#include <signal.h>
/* flags to tdb_store() */