Hi,

I was looking through the ports tree to find any `#include
<sys/malloc.h>` instead of stdlib.h for malloc (a mistake that I've
made in the past) and found this being done in games/naev. A closer
look showed it is behind `#if HAVE_MALLOC_H`, so this should actually
never be reached in the first place.

I tried building with the patch removed, and it builds and runs as
before.

ok to remove this patch?
? obsolete
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/naev/Makefile,v
diff -u -p -r1.26 Makefile
--- Makefile	16 Jun 2024 21:00:01 -0000	1.26
+++ Makefile	19 Oct 2024 01:17:08 -0000
@@ -7,6 +7,7 @@ COMMENT-data =		naev game data
 V = 			0.11.5
 DISTNAME =		naev-${V}-source
 PKGNAME = 		naev-${V}
+REVISION =		0
 
 CATEGORIES = 		games x11
 
Index: patches/patch-src_utf8_c
===================================================================
RCS file: patches/patch-src_utf8_c
diff -N patches/patch-src_utf8_c
--- patches/patch-src_utf8_c	7 May 2022 20:44:37 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-Index: src/utf8.c
---- src/utf8.c.orig
-+++ src/utf8.c
-@@ -19,7 +19,7 @@
- #endif /* HAVE_ALLOCA_H */
- #include <assert.h>
- #if HAVE_MALLOC_H
--#   include <malloc.h>
-+#   include <sys/malloc.h>
- #endif /* HAVE_MALLOC_H */
- #include <stdio.h>
- #include <string.h>

Reply via email to