Mercurial > hg > octave-kai > gnulib-hg
changeset 13777:f757eb706a43
parse-datetime: avoid compilation failure on OpenBSD 4.7
* lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
This works around a compilation failure on OpenBSD 4.7:
http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Thu, 07 Oct 2010 23:15:00 +0200 |
parents | 2285cf35fa15 |
children | fd05a2edf1e4 |
files | ChangeLog lib/parse-datetime.y |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-10-07 Jim Meyering <meyering@redhat.com> + + parse-datetime: avoid compilation failure on OpenBSD 4.7 + * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define. + This works around a compilation failure on OpenBSD 4.7: + http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418 + 2010-10-07 Eric Blake <eblake@redhat.com> docs: update cygwin progress
--- a/lib/parse-datetime.y +++ b/lib/parse-datetime.y @@ -68,6 +68,14 @@ #include "xalloc.h" +/* Bison's skeleton tests _STDLIB_H, while some stdlib.h headers + use _STDLIB_H_ as witness. Map the latter to the one bison uses. */ +/* FIXME: this is temporary. Remove when we have a mechanism to ensure + that the version we're using is fixed, too. */ +#ifdef _STDLIB_H_ +# undef _STDLIB_H +# define _STDLIB_H 1 +#endif /* ISDIGIT differs from isdigit, as follows: - Its arg may be any int or unsigned int; it need not be an unsigned char