X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-strsignal.c;h=8868346e6fdb49249c67df897ab546e576a4e7c9;hb=f0367599e1c6404e41c6ad3cf24d738f058dd1fb;hp=8cc955bdc3f73bb51b47c8e586b2333c23d99596;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/test-strsignal.c b/tests/test-strsignal.c index 8cc955bdc..8868346e6 100644 --- a/tests/test-strsignal.c +++ b/tests/test-strsignal.c @@ -46,7 +46,11 @@ int main (int argc, char **argv) { - char *str; + /* Work around bug in cygwin 1.5.25 by declaring str as + const char *, even though strsignal is supposed to return char *. + At any rate, this doesn't hurt, since POSIX 200x states that "The + string pointed to shall not be modified by the application." */ + const char *str; /* We try a couple of signals, since not all signals are supported everywhere. Notwithstanding the #ifdef for neatness, SIGINT should in