comparison includes.h @ 1726:57f85129670f

move GNU_SOURCE earlier
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Jun 2020 22:24:58 +0800
parents ca75bb513359
children 8dc43b30c6bf
comparison
equal deleted inserted replaced
1725:a139fe25f919 1726:57f85129670f
23 * SOFTWARE. */ 23 * SOFTWARE. */
24 24
25 #ifndef DROPBEAR_INCLUDES_H_ 25 #ifndef DROPBEAR_INCLUDES_H_
26 #define DROPBEAR_INCLUDES_H_ 26 #define DROPBEAR_INCLUDES_H_
27 27
28 /* uclibc needs _GNU_SOURCE, maybe other things? */
29 #define _GNU_SOURCE
28 30
29 #include "options.h" 31 #include "options.h"
30 #include "debug.h" 32 #include "debug.h"
31 33
32 #include <sys/types.h> 34 #include <sys/types.h>
123 #ifdef HAVE_SYS_UIO_H 125 #ifdef HAVE_SYS_UIO_H
124 #include <sys/uio.h> 126 #include <sys/uio.h>
125 #endif 127 #endif
126 128
127 #ifdef HAVE_SYS_RANDOM_H 129 #ifdef HAVE_SYS_RANDOM_H
128 /* uclibc needs _GNU_SOURCE */
129 #define _GNU_SOURCE
130 #include <sys/random.h> 130 #include <sys/random.h>
131 #endif 131 #endif
132 132
133 #ifdef BUNDLED_LIBTOM 133 #ifdef BUNDLED_LIBTOM
134 #include "libtomcrypt/src/headers/tomcrypt.h" 134 #include "libtomcrypt/src/headers/tomcrypt.h"