diff options
Diffstat (limited to 'src/GetHost.c')
-rw-r--r-- | src/GetHost.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/GetHost.c b/src/GetHost.c index cdad709..0fe71f2 100644 --- a/src/GetHost.c +++ b/src/GetHost.c @@ -25,6 +25,7 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/lib/Xmu/GetHost.c,v 3.8 2001/12/14 19:55:46 dawes Exp $ */ /* * Author: Jim Fulton, MIT X Consortium @@ -32,6 +33,10 @@ in this Software without prior written authorization from The Open Group. * _XGetHostname - similar to gethostname but allows special processing. */ +#include <X11/Xosdefs.h> +#include <string.h> +#include <unistd.h> + #ifdef WIN32 #include <X11/Xwinsock.h> #endif @@ -44,9 +49,10 @@ in this Software without prior written authorization from The Open Group. #include <sys/utsname.h> #endif -int XmuGetHostname (buf, maxlen) - char *buf; - int maxlen; +#include <X11/Xmu/SysUtil.h> + +int +XmuGetHostname(char *buf, int maxlen) { int len; #ifdef WIN32 |