regex-tests, regex: fix bug: memset undeclared
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Feb 2013 17:19:06 +0000 (09:19 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 3 Feb 2013 17:19:34 +0000 (09:19 -0800)
commit6668cfa30c1b2f636b2db12327a6e87fe613e534
tree0e2618a90157e67078d00b558d2929e6b30ce186
parent65f6605a5f3cdd9beaccda55d90d5889bd6eafc3
regex-tests, regex: fix bug: memset undeclared

* tests/test-regex.c: Don't include regex.h twice.  Include
string.h, to declare memset.  Christensen's report also mentioned
this issue.
* m4/regex.m4 (gl_REGEX): Keep test program more in sync with
test-regex.c, to avoid future problems like this.  Remove
AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
twice.
ChangeLog
m4/regex.m4
tests/test-regex.c