diff options
author | arved <arved@FreeBSD.org> | 2011-07-14 23:44:34 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2011-07-14 23:44:34 +0800 |
commit | 946b4754b800aa343e90511f85cb9346fabeab28 (patch) | |
tree | ca9ec042184693a0319ff75b42960dd2d927a587 | |
parent | ffb332f2e8344e235c17ba49a702229cdf8e44f3 (diff) | |
download | freebsd-ports-gnome-946b4754b800aa343e90511f85cb9346fabeab28.tar.gz freebsd-ports-gnome-946b4754b800aa343e90511f85cb9346fabeab28.tar.zst freebsd-ports-gnome-946b4754b800aa343e90511f85cb9346fabeab28.zip |
Fix build with clang
PR: 158554
Submitted by: Niclas Zeising
-rw-r--r-- | x11/libsx/files/patch-freq-main.c | 11 | ||||
-rw-r--r-- | x11/libsx/files/patch-src-main.c | 11 | ||||
-rw-r--r-- | x11/libsx/files/patch-src-main2.c | 11 |
3 files changed, 33 insertions, 0 deletions
diff --git a/x11/libsx/files/patch-freq-main.c b/x11/libsx/files/patch-freq-main.c new file mode 100644 index 000000000000..402a2427ec21 --- /dev/null +++ b/x11/libsx/files/patch-freq-main.c @@ -0,0 +1,11 @@ +--- freq/main.c.orig 2011-07-01 09:36:39.000000000 +0200 ++++ freq/main.c 2011-07-01 09:36:50.000000000 +0200 +@@ -23,7 +23,7 @@ + void quit(Widget w, void *data); + void load(Widget w, void *data); + +-void main(int argc, char **argv) ++int main(int argc, char **argv) + { + argc = init_display(argc, argv, NULL); /* setup the display */ + if (argc == 0) diff --git a/x11/libsx/files/patch-src-main.c b/x11/libsx/files/patch-src-main.c new file mode 100644 index 000000000000..4afa2d5d81ee --- /dev/null +++ b/x11/libsx/files/patch-src-main.c @@ -0,0 +1,11 @@ +--- src/main.c.orig 2011-07-01 09:34:23.000000000 +0200 ++++ src/main.c 2011-07-01 09:34:37.000000000 +0200 +@@ -43,7 +43,7 @@ + + + +-void main(int argc, char **argv) ++int main(int argc, char **argv) + { + MyProgram mydata; + diff --git a/x11/libsx/files/patch-src-main2.c b/x11/libsx/files/patch-src-main2.c new file mode 100644 index 000000000000..eebef7d1325e --- /dev/null +++ b/x11/libsx/files/patch-src-main2.c @@ -0,0 +1,11 @@ +--- src/main2.c.orig 2011-07-01 09:35:43.000000000 +0200 ++++ src/main2.c 2011-07-01 09:35:54.000000000 +0200 +@@ -32,7 +32,7 @@ + + + +-void main(int argc, char **argv) ++int main(int argc, char **argv) + { + argc = init_display(argc, argv, NULL); /* setup the display */ + if (argc == 0) |