summaryrefslogtreecommitdiffstats
path: root/devel/glui/files
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2002-11-28 19:01:17 +0000
committerarved <arved@FreeBSD.org>2002-11-28 19:01:17 +0000
commit457d45686b4f8a84a11854f8f640c2a77da27958 (patch)
tree074582ed0ea2120db5ed34b343938a7916c713c6 /devel/glui/files
parentb099cadd4060d8c423e56f6cafab22850bbe46a4 (diff)
downloadFreeBSD-ports-457d45686b4f8a84a11854f8f640c2a77da27958.zip
FreeBSD-ports-457d45686b4f8a84a11854f8f640c2a77da27958.tar.gz
Fix Build on -CURRENT
PR: 43717 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
Diffstat (limited to 'devel/glui/files')
-rw-r--r--devel/glui/files/patch-example1.cpp19
-rw-r--r--devel/glui/files/patch-example2.cpp17
-rw-r--r--devel/glui/files/patch-example3.cpp18
-rw-r--r--devel/glui/files/patch-example4.cpp18
-rw-r--r--devel/glui/files/patch-example5.cpp18
-rw-r--r--devel/glui/files/patch-glui.h30
6 files changed, 120 insertions, 0 deletions
diff --git a/devel/glui/files/patch-example1.cpp b/devel/glui/files/patch-example1.cpp
new file mode 100644
index 0000000..84d540e
--- /dev/null
+++ b/devel/glui/files/patch-example1.cpp
@@ -0,0 +1,19 @@
+--- example1.cpp.orig Sat Oct 5 12:36:47 2002
++++ example1.cpp Sat Oct 5 12:37:20 2002
+@@ -85,7 +85,7 @@
+
+ /**************************************** main() ********************/
+
+-void main(int argc, char* argv[])
++int main(int argc, char* argv[])
+ {
+ /****************************************/
+ /* Initialize GLUT and create window */
+@@ -136,6 +136,7 @@
+ GLUI_Master.set_glutIdleFunc( myGlutIdle );
+
+ glutMainLoop();
++ return 0;
+ }
+
+
diff --git a/devel/glui/files/patch-example2.cpp b/devel/glui/files/patch-example2.cpp
new file mode 100644
index 0000000..bef9d48
--- /dev/null
+++ b/devel/glui/files/patch-example2.cpp
@@ -0,0 +1,17 @@
+--- example2.cpp.orig Sat Oct 5 12:37:42 2002
++++ example2.cpp Sat Oct 5 12:38:06 2002
+@@ -181,7 +181,7 @@
+
+ /**************************************** main() ********************/
+
+-void main(int argc, char* argv[])
++int main(int argc, char* argv[])
+ {
+ /****************************************/
+ /* Initialize GLUT and create window */
+@@ -244,4 +244,5 @@
+ GLUI_Master.set_glutIdleFunc( myGlutIdle );
+
+ glutMainLoop();
++ return 0;
+ }
diff --git a/devel/glui/files/patch-example3.cpp b/devel/glui/files/patch-example3.cpp
new file mode 100644
index 0000000..32604ea
--- /dev/null
+++ b/devel/glui/files/patch-example3.cpp
@@ -0,0 +1,18 @@
+--- example3.cpp.orig Sat Oct 5 12:42:22 2002
++++ example3.cpp Sat Oct 5 12:42:39 2002
+@@ -263,7 +263,7 @@
+
+ /**************************************** main() ********************/
+
+-void main(int argc, char* argv[])
++int main(int argc, char* argv[])
+ {
+ /****************************************/
+ /* Initialize GLUT and create window */
+@@ -392,5 +392,6 @@
+
+ /**** Regular GLUT main loop ****/
+ glutMainLoop();
++ return 0;
+ }
+
diff --git a/devel/glui/files/patch-example4.cpp b/devel/glui/files/patch-example4.cpp
new file mode 100644
index 0000000..c7295f8d9
--- /dev/null
+++ b/devel/glui/files/patch-example4.cpp
@@ -0,0 +1,18 @@
+--- example4.cpp.orig Sat Oct 5 12:38:51 2002
++++ example4.cpp Sat Oct 5 12:39:16 2002
+@@ -253,7 +253,7 @@
+
+ /**************************************** main() ********************/
+
+-void main(int argc, char* argv[])
++int main(int argc, char* argv[])
+ {
+ /****************************************/
+ /* Initialize GLUT and create window */
+@@ -371,5 +371,6 @@
+ /**** Regular GLUT main loop ****/
+
+ glutMainLoop();
++ return 0;
+ }
+
diff --git a/devel/glui/files/patch-example5.cpp b/devel/glui/files/patch-example5.cpp
new file mode 100644
index 0000000..d220bb0
--- /dev/null
+++ b/devel/glui/files/patch-example5.cpp
@@ -0,0 +1,18 @@
+--- example5.cpp.orig Sat Oct 5 12:39:00 2002
++++ example5.cpp Sat Oct 5 12:39:35 2002
+@@ -310,7 +310,7 @@
+
+ /**************************************** main() ********************/
+
+-void main(int argc, char* argv[])
++int main(int argc, char* argv[])
+ {
+ /****************************************/
+ /* Initialize GLUT and create window */
+@@ -478,5 +478,6 @@
+ /**** Regular GLUT main loop ****/
+
+ glutMainLoop();
++ return 0;
+ }
+
diff --git a/devel/glui/files/patch-glui.h b/devel/glui/files/patch-glui.h
new file mode 100644
index 0000000..1da2487
--- /dev/null
+++ b/devel/glui/files/patch-glui.h
@@ -0,0 +1,30 @@
+--- glui.h.orig Sat Oct 5 12:33:27 2002
++++ glui.h Sat Oct 5 12:34:09 2002
+@@ -295,8 +295,8 @@
+ parent_node= child_head = child_tail = next_sibling = prev_sibling = NULL;
+ };
+
+- friend GLUI_Rollout;
+- friend GLUI_Main;
++ friend class GLUI_Rollout;
++ friend class GLUI_Main;
+ };
+
+
+@@ -559,11 +559,11 @@
+
+ /********** Friend classes *************/
+
+- friend GLUI_Control;
+- friend GLUI_Rotation;
+- friend GLUI_Translation;
+- friend GLUI;
+- friend GLUI_Master_Object;
++ friend class GLUI_Control;
++ friend class GLUI_Rotation;
++ friend class GLUI_Translation;
++ friend class GLUI;
++ friend class GLUI_Master_Object;
+
+
+ /********** Misc functions *************/
OpenPOWER on IntegriCloud