diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-21 15:57:03 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-22 16:43:44 -0400 |
| commit | 33db42def2ce6fe040b5f77642347e8b3c6420e5 (patch) | |
| tree | 1cb9857acb523d9d5e2be6222328a38a5d4b1e74 /lib/string.c | |
| parent | d4494b5cff75b64a70cb27b2d8544b4debb7fa6b (diff) | |
| download | efi-boot-shim-33db42def2ce6fe040b5f77642347e8b3c6420e5.tar.gz efi-boot-shim-33db42def2ce6fe040b5f77642347e8b3c6420e5.zip | |
Make 'make test' work on gcc 4.8.5
Diffstat (limited to 'lib/string.c')
| -rw-r--r-- | lib/string.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c index 37eabe8c..d941cd56 100644 --- a/lib/string.c +++ b/lib/string.c @@ -7,7 +7,13 @@ #ifdef SHIM_UNIT_TEST #define strlen shim_strlen +#ifdef strcmp +#undef strcmp +#endif #define strcmp shim_strcmp +#ifdef strncmp +#undef strncmp +#endif #define strncmp shim_strncmp #define strncasecmp shim_strncasecmp #define strcasecmp shim_strcasecmp @@ -15,11 +21,26 @@ #define strlen shim_strlen #define strnlen shim_strnlen #define strcpy shim_strcpy +#ifdef strncpy +#undef strncpy +#endif #define strncpy shim_strncpy +#ifdef strdup +#undef strdup +#endif #define strdup shim_strdup +#ifdef strndup +#undef strndup +#endif #define strndup shim_strndup +#ifdef stpcpy +#undef stpcpy +#endif #define stpcpy shim_stpcpy #define strchrnul shim_strchrnul +#ifdef strchr +#undef strchr +#endif #define strchr shim_strchr #endif |
