diff --git a/src/acconfig.h b/src/acconfig.h
index be65f4a8a00768998cb8778ea82466fb98b203f3..7176a818f81572433b69553d22126e1d3a5e7332 100644
--- a/src/acconfig.h
+++ b/src/acconfig.h
@@ -1,6 +1,9 @@
 #ifndef MACHINE_H
 #define MACHINE_H
 
+/* We must define this *always* */
+#define POSIX_SOURCE
+
 /* Where's the master.pike file installed? */
 #define DEFAULT_MASTER "@prefix@/lib/pike/master.pike"
 
diff --git a/src/configure.in b/src/configure.in
index 00178c3834524c52ed8bba589d39e37c0ee23eae..1a17c224bb59033f1b09d6e6cfe2b01fdd80ffdd 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.99 1997/06/03 22:46:56 hubbe Exp $")
+AC_REVISION("$Id: configure.in,v 1.100 1997/06/04 00:48:31 hubbe Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -281,6 +281,8 @@ fi
 
 #############################################################################
 
+AC_DEFINE(POSIX_SOURCE)
+
 AC_MSG_CHECKING(ansi prototype capability)
 AC_CACHE_VAL(pike_cv_sys_ansi_prototypes,
 [
@@ -856,7 +858,7 @@ MY_CHECK_HEADERS(malloc,memory.h unistd.h stdlib.h)
 MY_CHECK_HEADERS(getpeername,sys/socket.h sys/socketvar.h sys/socketio.h)
 MY_CHECK_HEADERS(popen,stdio.h unistd.h)
 MY_CHECK_HEADERS(getenv,unistd.h stdlib.h)
-MY_CHECK_HEADERS(gethostname,unistd.h)
+MY_CHECK_HEADERS(gethostname,unistd.h netdb.h)
 
 AC_ALLOCA
 
diff --git a/src/global.h b/src/global.h
index a56bf86208d0dd9121ce58d13c477326b2ea44da..6fa3746c3d5ced3ecea4004abb0b51766cb24739 100644
--- a/src/global.h
+++ b/src/global.h
@@ -6,8 +6,6 @@
 #ifndef GLOBAL_H
 #define GLOBAL_H
 
-#define POSIX_SOURCE
-
 /*
  * Some structure forward declarations are needed.
  */
diff --git a/src/modules/module_configure.in b/src/modules/module_configure.in
index e75d6fb8c9534948cbb5a29ec54e89a6a95b97c8..d76cb50df718e8b6dea8e39b262fa492140d3076 100644
--- a/src/modules/module_configure.in
+++ b/src/modules/module_configure.in
@@ -1,5 +1,7 @@
 AC_PROG_CC
 
+AC_DEFINE(POSIX_SOURCE)
+
 AC_SUBST_FILE(dependencies)
 dependencies=$srcdir/dependencies
 AC_SUBST_FILE(dynamic_module_makefile)
diff --git a/src/version.c b/src/version.c
index 020b5e7f237c6eb8207734fed3504ed55625da4c..21e31e58caf317b1c721b5d9431dce99690d7573 100644
--- a/src/version.c
+++ b/src/version.c
@@ -12,5 +12,5 @@
 void f_version(INT32 args)
 {
   pop_n_elems(args);
-  push_text("Pike v0.5b7");
+  push_text("Pike v0.5b8");
 }