Fix configure test that uses 'main()' instead of 'int main(void)'.

Because of this the return type of random(3) is misdetected and the
build later fails on ports-gcc because the the local random() stub
clashes with the prototype from <stdlib.h>.
Bump REVISION.
This commit is contained in:
claudio
2025-12-15 19:40:05 +00:00
parent 7f2d03215d
commit 8b939281db
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ COMMENT= UCB/LBNL Network Simulator Version 2
V= 2.35
DISTNAME= ns-src-$V
PKGNAME= ns-$V
REVISION = 7
REVISION = 8
CATEGORIES= net
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
+12
View File
@@ -0,0 +1,12 @@
Index: configure.in
--- configure.in.orig
+++ configure.in
@@ -52,7 +52,7 @@ touch confdefs.h
AC_TRY_RUN([#include <stdlib.h>
#include "confdefs.h"
long random() { return 1; }
-main() { exit(0); }
+int main(void) { exit(0); }
],
AC_MSG_RESULT(long)
AC_DEFINE(RANDOM_RETURN_TYPE,long)