From bbda4efd9d7cda269d71ae99054e1ad2590d1b02 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 16 Nov 2012 18:01:35 -0600 Subject: More touch cleanup to use generic infrastructure: use getdate() from libc, use flag macros, option parsing can collect argument strings in global block, use existing perror_* macros. --- lib/portability.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/portability.h b/lib/portability.h index 33e2672f..1b5667ce 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -27,6 +27,8 @@ char *strptime(const char *buf, const char *format, struct tm *tm); // Another one. "Function prototypes shall be provided." but aren't. // http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html char *crypt(const char *key, const char *salt); +// And again, from all the way back in posix-2001 +struct tm *getdate(const char *string); // When building under obsolete glibc, hold its hand a bit. -- cgit v1.2.3