aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-09-23 20:00:30 +0200
committerMattias Andrée <m@maandree.se>2026-09-23 20:00:30 +0200
commit6fba90adab8777cefa7e84d34e3d77ba41657dc0 (patch)
treeaae1c9644b2a48c84246580a34706a6385cf3826 /common.h
parentFix compilation warning on 32-bit builds (diff)
downloadlibrecrypt-6fba90adab8777cefa7e84d34e3d77ba41657dc0.tar.gz
librecrypt-6fba90adab8777cefa7e84d34e3d77ba41657dc0.tar.bz2
librecrypt-6fba90adab8777cefa7e84d34e3d77ba41657dc0.tar.xz
m header file organisation improvement
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/common.h b/common.h
index e020e11..bc04b44 100644
--- a/common.h
+++ b/common.h
@@ -16,19 +16,11 @@
#endif
#include "librecrypt.h"
-#if defined(__linux__)
-# include <sys/auxv.h>
-# include <sys/random.h>
-#endif
-#include <sys/mman.h>
-#include <fcntl.h>
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
-#include <unistd.h>
#if defined(__GNUC__)
@@ -44,8 +36,8 @@
#define NONSTRING
#if defined(__GNUC__)
# if __GNUC__ >= 8 || defined(__clang__)
-# undef NONSTRING
-# define NONSTRING __attribute__((__nonstring__))
+# undef NONSTRING
+# define NONSTRING __attribute__((__nonstring__))
# endif
#endif
@@ -354,6 +346,8 @@ struct pepper *librecrypt_get_pepper_(LIBRECRYPT_CONTEXT *ctx, enum librecrypt_h
# include <sys/wait.h>
# include <setjmp.h>
# include <signal.h>
+# include <stdio.h>
+# include <stdlib.h>
# include <string.h>
# include <unistd.h>