Fix compilation error on mingw.
author |
Bruno Haible <bruno@clisp.org> |
date |
Sun, 02 Aug 2009 20:55:40 +0200 |
parents |
796e82b1141e |
children |
6fe9738b802f |
files |
ChangeLog lib/gethostname.c |
diffstat |
2 files changed, 8 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-02 Bruno Haible <bruno@clisp.org>
+
+ * lib/gethostname.c: Include limits.h.
+ Reported by Martin Lambers <marlam@marlam.de>.
+
2009-08-02 Simon Josefsson <simon@josefsson.org>
Bruno Haible <bruno@clisp.org>
--- a/lib/gethostname.c
+++ b/lib/gethostname.c
@@ -76,6 +76,9 @@
/* Get winsock2.h. */
#include <unistd.h>
+/* Get INT_MAX. */
+#include <limits.h>
+
/* Get set_winsock_errno. */
#include "w32sock.h"