pkgsrc/misc/vfu/patches/patch-vslib_getopt2.cpp
dholland 6175b00231 - make build stop on error
- sprinkle const
- should fix linux build
2014-06-29 19:43:54 +00:00

15 lines
440 B
C++

$NetBSD: patch-vslib_getopt2.cpp,v 1.1 2014/06/29 19:43:54 dholland Exp $
Sprinkle const to make more modern C++ compilers happier.
--- vslib/getopt2.cpp~ 2001-10-28 13:53:02.000000000 +0000
+++ vslib/getopt2.cpp
@@ -40,7 +40,7 @@ static char *nextarg = NULL;
/* Funktion */
-int getopt2(int argc, char *argv[], char *optstring)
+int getopt2(int argc, char *argv[], const char *optstring)
/*
* AU: Auswertung der Kommandozeile