diff options
Diffstat (limited to 'astro/openuniverse/files')
-rw-r--r-- | astro/openuniverse/files/patch-src_comet.cpp | 15 | ||||
-rw-r--r-- | astro/openuniverse/files/patch-src_ou.cpp | 17 | ||||
-rw-r--r-- | astro/openuniverse/files/patch-src_timeb.h | 49 |
3 files changed, 15 insertions, 66 deletions
diff --git a/astro/openuniverse/files/patch-src_comet.cpp b/astro/openuniverse/files/patch-src_comet.cpp index a8dd2baec728..bc52f1753aee 100644 --- a/astro/openuniverse/files/patch-src_comet.cpp +++ b/astro/openuniverse/files/patch-src_comet.cpp @@ -1,11 +1,10 @@ --- src/comet.cpp.orig 2000-05-13 22:48:51 UTC +++ src/comet.cpp -@@ -52,7 +52,7 @@ void CometTail(int body) +@@ -17,6 +17,7 @@ + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + ++#define GL_GLEXT_LEGACY + #include "ou.h" + #ifdef WIN32 - wglPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, quad); - #else --#ifdef GL_EXT_point_parameters -+#if 0 - glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, quad); - #endif - #endif diff --git a/astro/openuniverse/files/patch-src_ou.cpp b/astro/openuniverse/files/patch-src_ou.cpp index 38cc3f4d10f4..68327b826554 100644 --- a/astro/openuniverse/files/patch-src_ou.cpp +++ b/astro/openuniverse/files/patch-src_ou.cpp @@ -1,11 +1,10 @@ --- src/ou.cpp.orig 2000-06-04 21:29:29 UTC +++ src/ou.cpp -@@ -22,7 +22,7 @@ - #include <string.h> - #include <math.h> - #include <time.h> --#include <sys/timeb.h> -+#include "timeb.h" - #include <setjmp.h> - #include "ou.h" - #include "gui.h" +@@ -560,6 +560,7 @@ int main(int argc, char *argv[]) + #else + glutReshapeFunc(Reshape); + #endif ++ glutDisplayFunc(glutPostRedisplay); + glutMainLoop(); + return 0; + } diff --git a/astro/openuniverse/files/patch-src_timeb.h b/astro/openuniverse/files/patch-src_timeb.h deleted file mode 100644 index 8c2f67c51eae..000000000000 --- a/astro/openuniverse/files/patch-src_timeb.h +++ /dev/null @@ -1,49 +0,0 @@ ---- src/timeb.h.orig 2016-07-26 13:11:57 UTC -+++ src/timeb.h -@@ -0,0 +1,46 @@ -+/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Library General Public License as -+ published by the Free Software Foundation; either version 2 of the -+ License, or (at your option) any later version. -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Library General Public License for more details. -+ -+ You should have received a copy of the GNU Library General Public -+ License along with the GNU C Library; see the file COPYING.LIB. If not, -+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -+ Boston, MA 02111-1307, USA. */ -+ -+#ifndef _SYS_TIMEB_H -+#define _SYS_TIMEB_H 1 -+ -+//#include <features.h> -+ -+#define __need_time_t -+#include <time.h> -+ -+ -+__BEGIN_DECLS -+ -+/* Structure returned by the `ftime' function. */ -+ -+struct timeb -+ { -+ time_t time; /* Seconds since epoch, as from `time'. */ -+ unsigned short int millitm; /* Additional milliseconds. */ -+ short int timezone; /* Minutes west of GMT. */ -+ short int dstflag; /* Nonzero if Daylight Savings Time used. */ -+ }; -+ -+/* Fill in TIMEBUF with information about the current time. */ -+ -+extern int ftime __P ((struct timeb *__timebuf)); -+ -+__END_DECLS -+ -+#endif /* sys/timeb.h */ |