1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Use an explicit (void *)0 instead of NULL to indicate a varargs sentinel.

This fixes the runtime on 64-bit platforms since since C++ treats NULL as
simply 0.

PR:		119127
This commit is contained in:
Joe Marcus Clarke 2007-12-30 23:46:29 +00:00
parent 4ede838fe5
commit 47c1047a0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=204722
2 changed files with 12 additions and 1 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= abiword
PORTVERSION= 2.4.6
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= editors
MASTER_SITES= http://www.abisource.com/downloads/%SUBDIR%/${PORTVERSION}/source/
MASTER_SITE_SUBDIR= abiword

View File

@ -0,0 +1,11 @@
--- src/wp/ap/unix/ap_UnixApp.cpp.orig 2007-12-30 18:44:50.000000000 -0500
+++ src/wp/ap/unix/ap_UnixApp.cpp 2007-12-30 18:41:23.000000000 -0500
@@ -1405,7 +1405,7 @@ int AP_UnixApp::main(const char * szAppN
GNOME_PARAM_APP_DATADIR, ABIWORD_DATADIR,
GNOME_PARAM_APP_LIBDIR, ABIWORD_APP_LIBDIR,
GNOME_PARAM_POPT_TABLE, AP_Args::options,
- GNOME_PARAM_NONE);
+ (void *)0);
#ifdef LOGFILE
fprintf(logfile,"gnome_program_init completed \n");
#endif