mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Fix build on -current
PR: 58143 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
This commit is contained in:
parent
367cb1bae4
commit
ae730cb949
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91479
@ -27,7 +27,8 @@ do-install:
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} > 500000
|
||||
BROKEN= Does not compile
|
||||
LDFLAGS+= -lm
|
||||
MAKE_ARGS+= LDFLAGS="${LDFLAGS}"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
15
irc/dancer/files/patch-src::list.h
Normal file
15
irc/dancer/files/patch-src::list.h
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/list.h.orig Mon Nov 13 03:42:45 2000
|
||||
+++ src/list.h Thu Oct 16 22:36:07 2003
|
||||
@@ -52,10 +52,10 @@
|
||||
((NULL == (list)) || (NULL == ((header *)(list))->next))
|
||||
|
||||
/* NewList creates a header for a list of the specified type */
|
||||
-#define NewList(type) ( ##type## *)calloc(1, sizeof( ##type## ))
|
||||
+#define NewList(type) (type *)calloc(1, sizeof(type))
|
||||
|
||||
/* NewEntry allocates a new entry of the specified type */
|
||||
-#define NewEntry(type) ( ##type## *)calloc(1, sizeof( ##type## ))
|
||||
+#define NewEntry(type) (type *)calloc(1, sizeof(type))
|
||||
|
||||
#define RemoveFirst(list) RemoveEntry((list), (list).h->next)
|
||||
#define RemoveLast(list) RemoveEntry((list), (list).h->prev)
|
Loading…
Reference in New Issue
Block a user