aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-25 10:01:56 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-25 10:01:56 +0200
commit79c475c9170519a05fa707f66478aaa8f715e0b0 (patch)
tree1e86b4b40eeb8e4a6f2f8b2017c4c8ef13a649ca /libssh
parent3dd03fec213ac4347bb5366432b8fd4fb8a290d1 (diff)
downloadlibssh-79c475c9170519a05fa707f66478aaa8f715e0b0.tar.gz
libssh-79c475c9170519a05fa707f66478aaa8f715e0b0.tar.xz
libssh-79c475c9170519a05fa707f66478aaa8f715e0b0.zip
Fixed including of config.h.
If there is some option to modify libc behaviour (like if there was some off_t usage to be modified by some flag to make that 64 bit) that needs to be done before the first libc header. one could still do -D there, though (unless cmake wants to do something automatically and puts that in config.h)
Diffstat (limited to 'libssh')
-rw-r--r--libssh/kex.c3
-rw-r--r--libssh/misc.c3
-rw-r--r--libssh/packet.c3
-rw-r--r--libssh/poll.c3
4 files changed, 8 insertions, 4 deletions
diff --git a/libssh/kex.c b/libssh/kex.c
index ad2acc44..1d399012 100644
--- a/libssh/kex.c
+++ b/libssh/kex.c
@@ -21,6 +21,8 @@
* MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
@@ -29,7 +31,6 @@
#include <arpa/inet.h>
#endif
-#include "config.h"
#include "libssh/priv.h"
#include "libssh/ssh2.h"
#include "libssh/ssh1.h"
diff --git a/libssh/misc.c b/libssh/misc.c
index a08a6296..bcc79061 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -22,6 +22,8 @@
* MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <limits.h>
#include <stdio.h>
#include <string.h>
@@ -29,7 +31,6 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include "config.h"
#ifdef _WIN32
#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath
diff --git a/libssh/packet.c b/libssh/packet.c
index 7c7178ce..7e25479f 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -21,6 +21,8 @@
* MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -30,7 +32,6 @@
#include <arpa/inet.h>
#endif
-#include "config.h"
#include "libssh/priv.h"
#include "libssh/ssh2.h"
#include "libssh/ssh1.h"
diff --git a/libssh/poll.c b/libssh/poll.c
index 023a4888..f757ee6e 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -26,9 +26,10 @@
/* This code is based on glib's gpoll */
+#include "config.h"
+
#include <errno.h>
-#include "config.h"
#include "libssh/priv.h"
#include "libssh/libssh.h"
#include "libssh/poll.h"