1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 06:07:34 +00:00

Ports/perl5: Remove unnecessary drand48 patch

With `drand48` now in LibC, this patch is not needed.
This commit is contained in:
Beckett Normington 2023-08-25 12:27:11 -04:00 committed by Tim Schumacher
parent 8bc1f1b63e
commit eaf7dbaced
6 changed files with 4 additions and 65 deletions

View file

@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Beckett Normington <beckett@b0ba.dev>
Date: Tue, 25 Jul 2023 17:00:13 -0400
Subject: [PATCH] pp_sys: Avoid redefining `h_errno`
---
pp_sys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pp_sys.c b/pp_sys.c
index b18911b3f4b047fa9b8422f66530cbee094af824..0bef81722379e4f28e18f622f9e1c977a9debd63 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -69,7 +69,7 @@
compiling multithreaded and singlethreaded ($ccflags et al).
HOST_NOT_FOUND is typically defined in <netdb.h>.
*/
-#if defined(HOST_NOT_FOUND) && !defined(h_errno) && !defined(__CYGWIN__)
+#if defined(HOST_NOT_FOUND) && !defined(h_errno) && !defined(__CYGWIN__) && !defined(__serenity__)
extern int h_errno;
#endif