View | Details | Raw Unified | Return to bug 237917
Collapse All | Expand All

(-)graphics/libGLw/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	libGLw
4
PORTNAME=	libGLw
5
PORTVERSION=	8.0.0
5
PORTVERSION=	8.0.0
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/glw/
8
MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/glw/
9
DISTNAME=	glw-${PORTVERSION}
9
DISTNAME=	glw-${PORTVERSION}
(-)graphics/libGLw/files/patch-b060a07.c (+55 lines)
Line 0 Link Here
1
diff --git a/GLwDrawA.h b/GLwDrawA.h
2
index b9711c216bc458f7ec2d2055495045efef8903f0..316a70d5d2061af67d8307c74706208907c3ac6a 100644
3
--- GLwDrawA.h
4
+++ GLwDrawA.h
5
@@ -131,12 +131,18 @@
6
 #define GLwNaccumAlphaSize	"accumAlphaSize"
7
 #define GLwCAccumAlphaSize	"AccumAlphaSize"
8
 
9
+#if (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
10
+#  define GLAPIVAR extern __attribute__((visibility("default")))
11
+#else
12
+#  define GLAPIVAR extern
13
+#endif
14
+
15
 #ifdef __GLX_MOTIF
16
 
17
 typedef struct _GLwMDrawingAreaClassRec	*GLwMDrawingAreaWidgetClass;
18
 typedef struct _GLwMDrawingAreaRec	*GLwMDrawingAreaWidget;
19
 
20
-GLAPI WidgetClass glwMDrawingAreaWidgetClass;
21
+GLAPIVAR WidgetClass glwMDrawingAreaWidgetClass;
22
 
23
 
24
 #else 
25
@@ -144,7 +150,7 @@ GLAPI WidgetClass glwMDrawingAreaWidgetClass;
26
 typedef struct _GLwDrawingAreaClassRec	*GLwDrawingAreaWidgetClass;
27
 typedef struct _GLwDrawingAreaRec	*GLwDrawingAreaWidget;
28
 
29
-GLAPI WidgetClass glwDrawingAreaWidgetClass;
30
+GLAPIVAR WidgetClass glwDrawingAreaWidgetClass;
31
 
32
 
33
 #endif
34
diff --git a/GLwDrawAP.h b/GLwDrawAP.h
35
index 4ff21b426dd5912e007356160ef6fe5a41536c24..6d29849d4288f4affaa5ed3f5d5d5bc1668d4cd3 100644
36
--- GLwDrawAP.h
37
+++ GLwDrawAP.h
38
@@ -59,7 +59,7 @@ typedef struct _GLwMDrawingAreaClassRec {
39
   } GLwMDrawingAreaClassRec;
40
 
41
 
42
-GLAPI GLwMDrawingAreaClassRec glwMDrawingAreaClassRec;
43
+GLAPIVAR GLwMDrawingAreaClassRec glwMDrawingAreaClassRec;
44
 
45
 
46
 /* XT */
47
@@ -70,7 +70,7 @@ typedef struct _GLwDrawingAreaClassRec {
48
   GLwDrawingAreaClassPart     glwDrawingArea_class;
49
   } GLwDrawingAreaClassRec;
50
 
51
-GLAPI GLwDrawingAreaClassRec glwDrawingAreaClassRec;
52
+GLAPIVAR GLwDrawingAreaClassRec glwDrawingAreaClassRec;
53
 
54
 
55
 #endif 
(-)graphics/libGLw/files/patch-c4f7cdf.c (+13 lines)
Line 0 Link Here
1
diff --git a/GLwDrawA.c b/GLwDrawA.c
2
index b9ef47b1ce505553120fa7556693b97e5d91b3c5..8ce12fba0f6ef4b092837ca0c2e6aa44f5de2dfa 100644
3
--- GLwDrawA.c
4
+++ GLwDrawA.c
5
@@ -474,7 +474,7 @@ static void Initialize(GLwDrawingAreaWidget req,GLwDrawingAreaWidget neww,ArgLis
6
 
7
   /* fix size */
8
   if(req->core.width==0) neww->core.width=100;
9
-  if(req->core.height==0) neww->core.width=100;
10
+  if(req->core.height==0) neww->core.height=100;
11
 
12
   /* create the attribute list if needed */
13
   neww->glwDrawingArea.myList=FALSE;

Return to bug 237917