[Lsb-messages] /var/www/bzr/lsb/4.0/appbat r843: Patch freeglut build for select() move (bug 3587)

Stew Benedict stewb at linux-foundation.org
Mon Jun 11 13:43:13 UTC 2012


------------------------------------------------------------
revno: 843
committer: Stew Benedict <stewb at linux-foundation.org>
branch nick: appbat
timestamp: Mon 2012-06-11 09:43:13 -0400
message:
  Patch freeglut build for select() move (bug 3587)
modified:
  extras/md5sums
  patches/freeglut-2.4.0.patch
-------------- next part --------------
=== modified file 'extras/md5sums'
--- a/extras/md5sums	2012-06-08 11:18:30 +0000
+++ b/extras/md5sums	2012-06-11 13:43:13 +0000
@@ -55,7 +55,7 @@
 862554bc08f70110f15935c5ce750edc  leafpad-0.8.11.patch
 9ba4dbb37fb1447301350012d254a96a  scribus-1.3.3.10.patch
 e7ad62916887df0a5f9d867eb08017da  openssl-0.9.7m.patch
-dfdc5d10161f46a595287becfcac210d  freeglut-2.4.0.patch
+508020a3fc33dda18a10b9113bff5ac9  freeglut-2.4.0.patch
 095c4625c578cbbc7f830cefdfc60261  jpeg-6b.patch
 ea1b956ef1924d472081ac0d5d59525e  tiff-3.8.2.patch
 307e698d6b74ce1562b6745d169bf6eb  libpng-1.2.18.patch

=== modified file 'patches/freeglut-2.4.0.patch'
--- a/patches/freeglut-2.4.0.patch	2009-11-06 20:12:56 +0000
+++ b/patches/freeglut-2.4.0.patch	2012-06-11 13:43:13 +0000
@@ -19,6 +19,10 @@
         Modify the makefile to add -std=c99 to the CFLAGS so freeglut
         will compile correctly with gcc4.
 
+- src/freeglut_main.c
+
+	LSB SDK moved select() to sys/select.h
+	Include the latter so things build
 
 diff -up freeglut-2.4.0/configure.lsbcc freeglut-2.4.0/configure
 --- freeglut-2.4.0/configure.lsbcc	2009-11-06 14:34:09.000000000 -0500
@@ -97,3 +101,14 @@
  DIST_SOURCES = $(lib at LIBRARY@_la_SOURCES)
  HEADERS = $(noinst_HEADERS)
  
+diff -up freeglut-2.4.0/src/freeglut_main.c.lsbcc2 freeglut-2.4.0/src/freeglut_main.c
+--- freeglut-2.4.0/src/freeglut_main.c.lsbcc2	2012-06-11 07:57:38.717486063 -0400
++++ freeglut-2.4.0/src/freeglut_main.c	2012-06-11 07:57:57.980486065 -0400
+@@ -29,6 +29,7 @@
+ #include "freeglut_internal.h"
+ #include <errno.h>
+ #include <stdarg.h>
++#include <sys/select.h>
+ #if TARGET_HOST_WIN32
+ #    define VFPRINTF(s,f,a) vfprintf((s),(f),(a))
+ #else



More information about the lsb-messages mailing list