#include <stdbool.h>
#include <stdio.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include <sys/types.h>
-#if HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <string.h>
#ifdef TM_IN_SYS_TIME
# include <sys/time.h>
# define MAX_BUFF_LEN 1024
int
-main ()
+main (void)
{
char buff[MAX_BUFF_LEN + 1];
/* Which POSIX version to conform to, for utilities.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#endif
#include <limits.h>
-
#include <stdlib.h>
-#if !HAVE_DECL_GETENV && !defined getenv
-char *getenv ();
-#endif
#if HAVE_UNISTD_H
# include <unistd.h>
-# posixtm.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# posixtm.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
[
dnl Prerequisites of lib/posixtm.c.
AC_STRUCT_TM
- AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
])
-# posixver.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# posixver.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
AC_DEFUN([gl_POSIXVER],
[
AC_CHECK_HEADERS_ONCE(unistd.h)
- AC_CHECK_DECLS_ONCE(getenv)
])