mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
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:
+1
-1
@@ -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>
|
||||
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user