$NetBSD: patch-cx,v 1.3 2002/08/25 19:23:43 jlam Exp $ --- konsole/konsole/main.cpp.orig Mon Jun 24 12:57:09 2002 +++ konsole/konsole/main.cpp @@ -112,7 +112,9 @@ /* --| main |------------------------------------------------------ */ -int main(int argc, char* argv[]) +extern "C" int kdemain(int, char*[]); + +int kdemain(int argc, char* argv[]) { setgid(getgid()); setuid(getuid()); // drop privileges