mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Use stdlib.h instead of malloc.h, which is deprecated.
This commit is contained in:
parent
fe80eb445c
commit
1542d3daa9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50475
14
games/acm/files/patch-06
Normal file
14
games/acm/files/patch-06
Normal file
@ -0,0 +1,14 @@
|
||||
--- src/chaser.c~ Tue May 12 05:43:03 1998
|
||||
+++ src/chaser.c Sat Nov 24 14:47:05 2001
|
||||
@@ -20,7 +20,11 @@
|
||||
#include "pm.h"
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/keysym.h>
|
||||
+#ifdef HAVE_STDLIB_H
|
||||
+#include <stdlib.h>
|
||||
+#else
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
|
||||
#define MAX_MAPPED_STRING_LEN 20
|
||||
#define MAX_POPUP_STRING_LEN 40
|
14
games/acm/files/patch-07
Normal file
14
games/acm/files/patch-07
Normal file
@ -0,0 +1,14 @@
|
||||
--- dis/server/sites.c~ Sat Nov 24 14:46:24 2001
|
||||
+++ dis/server/sites.c Sat Nov 24 14:46:03 2001
|
||||
@@ -27,7 +27,11 @@
|
||||
* README file.
|
||||
*/
|
||||
#include <server.h>
|
||||
+#ifdef HAVE_STDLIB_H
|
||||
+#include <stdlib.h>
|
||||
+#else
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
#include <string.h>
|
||||
#ifdef HAVE_NDBM
|
||||
#include <ndbm.h>
|
Loading…
Reference in New Issue
Block a user