ports/158554: [PATCH] fix x11/libsx so that it builds using clang
Niclas Zeising
niclas.zeising at gmail.com
Fri Jul 1 07:50:08 UTC 2011
>Number: 158554
>Category: ports
>Synopsis: [PATCH] fix x11/libsx so that it builds using clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 01 07:50:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Niclas Zeising
>Release: FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root at vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64
>Description:
>How-To-Repeat:
>Fix:
Attached patch makes x11/libsx build using clang, by changing some main functions to follow the standard wrt. return type.
--- x11.libsx.clangfix.diff begins here ---
Index: files/patch-freq-main.c
===================================================================
RCS file: files/patch-freq-main.c
diff -N files/patch-freq-main.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-freq-main.c 1 Jul 2011 07:39:38 -0000
@@ -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)
Index: files/patch-src-main.c
===================================================================
RCS file: files/patch-src-main.c
diff -N files/patch-src-main.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-src-main.c 1 Jul 2011 07:39:38 -0000
@@ -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;
+
Index: files/patch-src-main2.c
===================================================================
RCS file: files/patch-src-main2.c
diff -N files/patch-src-main2.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-src-main2.c 1 Jul 2011 07:39:38 -0000
@@ -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)
--- x11.libsx.clangfix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list