Make build under clang6

Added one patchfile

main.cxx:517:21: error: invalid suffix on literal; C++11 requires a space       +between literal and identifier [-Wreserved-user-defined-literal]                               printf("Version: "VERSION"\n");

Reported by:	pkg-fallout
This commit is contained in:
Diane Bruce 2018-01-18 20:45:32 +00:00
parent d6c6e0f9d8
commit cf616cb1bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459376
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,6 @@
--- configure.orig 2017-04-01 02:21:18 UTC
--- configure.orig 2018-01-14 19:21:15 UTC
+++ configure
@@ -6143,7 +6143,7 @@ $as_echo "$FLTK_CONFIG" >&6; }
@@ -6166,7 +6166,7 @@ $as_echo "$FLTK_CONFIG" >&6; }
FLTK_LIBS=`$FLTK_CONFIG --ldflags --use-images`
if test "x$target_mingw32" != "xyes"; then
if test "x$target_darwin" != "xyes"; then

View File

@ -0,0 +1,11 @@
--- src/main.cxx.orig 2018-01-18 20:38:50 UTC
+++ src/main.cxx
@@ -514,7 +514,7 @@ int parse_args(int argc, char **argv, int& idx)
exit(0);
}
if (strcasecmp("--version", argv[idx]) == 0) {
- printf("Version: "VERSION"\n");
+ printf("Version: %s\n",VERSION);
exit (0);
}
if (strcasecmp("--rig_debug", argv[idx]) == 0) {