Browse Source

Merge remote-tracking branch 'catalyst-github/bug26036'

Nick Mathewson 6 years ago
parent
commit
5ad72bc1f5
2 changed files with 6 additions and 6 deletions
  1. 0 6
      src/common/crypto.c
  2. 6 0
      src/common/crypto_rand.c

+ 0 - 6
src/common/crypto.c

@@ -60,12 +60,6 @@ ENABLE_GCC_WARNING(redundant-decls)
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef HAVE_SYS_SYSCALL_H
-#include <sys/syscall.h>
-#endif
-#ifdef HAVE_SYS_RANDOM_H
-#include <sys/random.h>
-#endif
 
 #include "torlog.h"
 #include "torint.h"

+ 6 - 0
src/common/crypto_rand.c

@@ -55,6 +55,12 @@ ENABLE_GCC_WARNING(redundant-decls)
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#ifdef HAVE_SYS_SYSCALL_H
+#include <sys/syscall.h>
+#endif
+#ifdef HAVE_SYS_RANDOM_H
+#include <sys/random.h>
+#endif
 
 /**
  * How many bytes of entropy we add at once.