diff options
author | Rob Landley <rob@landley.net> | 2012-11-16 18:01:35 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-11-16 18:01:35 -0600 |
commit | bbda4efd9d7cda269d71ae99054e1ad2590d1b02 (patch) | |
tree | ff987a8efa4d9ad2645a10515f5fe9d44b96ad17 /lib/portability.h | |
parent | 47ee6f300326f65fe4dfcee5470f1f99018d442a (diff) | |
download | toybox-bbda4efd9d7cda269d71ae99054e1ad2590d1b02.tar.gz |
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.
Diffstat (limited to 'lib/portability.h')
-rw-r--r-- | lib/portability.h | 2 |
1 files changed, 2 insertions, 0 deletions
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. |