diff options
Diffstat (limited to 'gl/m4/strstr.m4')
| -rw-r--r-- | gl/m4/strstr.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gl/m4/strstr.m4 b/gl/m4/strstr.m4 index 7de203a7..1b5ef6c1 100644 --- a/gl/m4/strstr.m4 +++ b/gl/m4/strstr.m4 | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | # strstr.m4 serial 24 | 1 | # strstr.m4 |
| 2 | dnl Copyright (C) 2008-2023 Free Software Foundation, Inc. | 2 | # serial 25 |
| 3 | dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 5 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 6 | 8 | ||
| 7 | dnl Check that strstr works. | 9 | dnl Check that strstr works. |
| 8 | AC_DEFUN([gl_FUNC_STRSTR_SIMPLE], | 10 | AC_DEFUN([gl_FUNC_STRSTR_SIMPLE], |
| @@ -94,7 +96,7 @@ static void quit (int sig) { _exit (sig + 128); } | |||
| 94 | char *haystack = (char *) malloc (2 * m + 2); | 96 | char *haystack = (char *) malloc (2 * m + 2); |
| 95 | char *needle = (char *) malloc (m + 2); | 97 | char *needle = (char *) malloc (m + 2); |
| 96 | /* Failure to compile this test due to missing alarm is okay, | 98 | /* Failure to compile this test due to missing alarm is okay, |
| 97 | since all such platforms (mingw) also have quadratic strstr. */ | 99 | since all such platforms (mingw, MSVC) also have quadratic strstr. */ |
| 98 | signal (SIGALRM, quit); | 100 | signal (SIGALRM, quit); |
| 99 | alarm (5); | 101 | alarm (5); |
| 100 | /* Check for quadratic performance. */ | 102 | /* Check for quadratic performance. */ |
