fix missing prototypes and a load of (harmless) LP64 warnings
This commit is contained in:
parent
cde4d16d8c
commit
82f570bcfc
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.72 2010/11/22 08:36:59 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.73 2011/07/17 15:39:50 naddy Exp $
|
||||
|
||||
COMMENT= General Toolkit for X11 GUI
|
||||
|
||||
DISTNAME= gtk+-1.2.10
|
||||
REVISION= 9
|
||||
REVISION= 10
|
||||
|
||||
SHARED_LIBS= gdk 3.0 \
|
||||
gtk 3.0
|
||||
|
11
x11/gtk+/patches/patch-gdk_gdkinput_c
Normal file
11
x11/gtk+/patches/patch-gdk_gdkinput_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-gdk_gdkinput_c,v 1.1 2011/07/17 15:39:50 naddy Exp $
|
||||
--- gdk/gdkinput.c.orig Sun Jul 17 16:45:19 2011
|
||||
+++ gdk/gdkinput.c Sun Jul 17 16:45:49 2011
|
||||
@@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include "config.h"
|
15
x11/gtk+/patches/patch-gtk_gtktypeutils_h
Normal file
15
x11/gtk+/patches/patch-gtk_gtktypeutils_h
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-gtk_gtktypeutils_h,v 1.1 2011/07/17 15:39:50 naddy Exp $
|
||||
|
||||
Fix LP64 warnings.
|
||||
|
||||
--- gtk/gtktypeutils.h.orig Sun Jul 17 16:46:12 2011
|
||||
+++ gtk/gtktypeutils.h Sun Jul 17 16:46:40 2011
|
||||
@@ -86,7 +86,7 @@ typedef enum
|
||||
#ifdef offsetof
|
||||
#define GTK_STRUCT_OFFSET(struct, field) ((gint) offsetof (struct, field))
|
||||
#else /* !offsetof */
|
||||
-#define GTK_STRUCT_OFFSET(struct, field) ((gint) ((gchar*) &((struct*) 0)->field))
|
||||
+#define GTK_STRUCT_OFFSET(struct, field) ((gint) (size_t) ((gchar*) &((struct*) 0)->field))
|
||||
#endif /* !offsetof */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user