ports/misc/linm/files/patch-lib_mlsdialog.h
Tobias Kortkamp c069836a06 misc/linm: Fix build with Clang 6
In file included from mlsdialog.cpp:1:
./mlsdialog.h:30:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'bool'
                return false;
                       ^~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p478276_s338342/logs/errors/linm-0.8.1.1_5.log

- Fix build on 12.0 too; it fails to link and seems to want iconv
  from ports for the //TRANSLIT extension

/usr/bin/ld: error: undefined symbol: libiconv_open
>>> referenced by mlslocale.cpp
>>>               mlslocale.o:(MLSUTIL::code_convert(char const*, char const*, char const*)) in archive ../../lib/libmlscommon.a
2018-08-30 12:10:49 +00:00

16 lines
624 B
C

In file included from mlsdialog.cpp:1:
./mlsdialog.h:30:10: error: cannot initialize return object of type 'void *' with an rvalue of type 'bool'
return false;
^~~~~
--- lib/mlsdialog.h.orig 2018-08-30 11:11:28 UTC
+++ lib/mlsdialog.h
@@ -27,7 +27,7 @@ class MlsDialog (public)
virtual void* MsgWaitBox(const string& sTitle, const string& sMsg)
{
cout << "MsgWaitBox :: " << sTitle << "Msg :: " << sMsg << endl;
- return false;
+ return NULL;
}
virtual void MsgWaitEnd(void* ) {}
virtual int InputBox(const string& sTitle, string& sInputStr, bool /*bPasswd*/ = false)