Move the code for declaring h_errno after #include <netdb.h>.
[bpt/emacs.git] / src / sysdep.c
index 2a45731..65cb021 100644 (file)
@@ -61,12 +61,6 @@ static int delete_exited_processes;
 #undef fwrite
 #endif
 
-#ifdef TRY_AGAIN
-#ifndef HAVE_H_ERRNO
-extern int h_errno;
-#endif
-#endif /* TRY_AGAIN */
-
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -2283,6 +2277,12 @@ extern Lisp_Object Vsystem_name;
 #endif /* not VMS */
 #endif /* not BSD4_1 */
 
+#ifdef TRY_AGAIN
+#ifndef HAVE_H_ERRNO
+extern int h_errno;
+#endif
+#endif /* TRY_AGAIN */
+
 void
 init_system_name ()
 {