Commit ff7d456b authored by Heiko Becker's avatar Heiko Becker 🎸

Include <strings.h> for strcasecmp

Summary:
POSIX states [1] that it is in the <strings.h> include file, not
<string.h>. While it's likely pulled in implicitly for glibc, its
absence causes a build error with musl libc
(src/wmlib/cdrom.c:128:33: error: implicit declaration of function
'strcasecmp';).

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html

Test Plan: Builds fine with glibc and musl libcs.

Differential Revision: https://phabricator.kde.org/D19614
parent a6bdaa02
......@@ -38,6 +38,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#ifdef CAN_CLOSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment