ladybird/Ports/cmatrix/patches/0002-Include-curses.h-from-ncurses-in-serenity.patch

24 lines
635 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Tue, 17 May 2022 20:58:39 +0430
Subject: [PATCH] Include curses.h from <ncurses> in serenity
Co-Authored-By: Manuel Palenzuela <manuelpalenzuelamerino@gmail.com>
---
cmatrix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmatrix.c b/cmatrix.c
index 7e3fbb9..0d1053f 100644
--- a/cmatrix.c
+++ b/cmatrix.c
@@ -48,7 +48,7 @@
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
-#ifdef _WIN32
+#ifdef _WIN32 || defined(__serenity__)
#include <ncurses/curses.h>
#else
#include <curses.h>