#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
#if GNULIB_defined_ESOCK /* native Windows platforms */
# if HAVE_WINSOCK2_H
extern int sys_nerr;
# endif
-/* Get sys_nerr, sys_errlist on native Windows. */
-# include <stdlib.h>
-
# else
# include "glthread/lock.h"