mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 01:05:08 +00:00
38 lines
954 B
Diff
38 lines
954 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Kenneth Myhra <kennethmyhra@gmail.com>
|
|
Date: Thu, 12 Aug 2021 21:03:13 +0200
|
|
Subject: [PATCH] Include 'strings.h' for strcasecmp
|
|
|
|
---
|
|
glib/glib-init.c | 3 +++
|
|
glib/gstrfuncs.c | 3 +++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
diff --git a/glib/glib-init.c b/glib/glib-init.c
|
|
index e7b4984..340b358 100644
|
|
--- a/glib/glib-init.c
|
|
+++ b/glib/glib-init.c
|
|
@@ -26,6 +26,9 @@
|
|
#include "gconstructor.h"
|
|
#include "gmem.h" /* for g_mem_gc_friendly */
|
|
|
|
+#ifdef __serenity__
|
|
+#include <strings.h>
|
|
+#endif
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c
|
|
index 9273533..de22330 100644
|
|
--- a/glib/gstrfuncs.c
|
|
+++ b/glib/gstrfuncs.c
|
|
@@ -32,6 +32,9 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <locale.h>
|
|
+#ifdef __serenity__
|
|
+#include <strings.h>
|
|
+#endif
|
|
#include <string.h>
|
|
#include <locale.h>
|
|
#include <errno.h>
|