Fix definition of main
Fixes build with clang
This commit is contained in:
parent
b2b9179c56
commit
b8266fb829
19
x11/chbg/patches/patch-src_chbg_c
Normal file
19
x11/chbg/patches/patch-src_chbg_c
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-src_chbg_c,v 1.1 2017/05/03 12:50:50 jca Exp $
|
||||
--- src/chbg.c.orig
|
||||
+++ src/chbg.c
|
||||
@@ -2178,11 +2178,12 @@ static void chbg_cleanup()
|
||||
#endif
|
||||
}
|
||||
|
||||
-gint main(argc, argv)
|
||||
-guint argc;
|
||||
-gchar **argv;
|
||||
+int
|
||||
+main(int ac, char **av)
|
||||
{
|
||||
gchar *p,pom[PATH_MAX];
|
||||
+ gint argc = ac;
|
||||
+ gchar **argv = av;
|
||||
|
||||
stop_changing = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user