summaryrefslogtreecommitdiff
path: root/graphics/urt/patches/patch-au
blob: bdf742ffd193e87dba80a0698810057ed0527338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-au,v 1.1 2005/12/19 16:24:12 joerg Exp $

--- get/getx11/x11_stuff.c.orig	2005-12-19 16:06:34.000000000 +0000
+++ get/getx11/x11_stuff.c
@@ -40,7 +40,7 @@
  */
 #include "getx11.h"
 #ifdef X_SHARED_MEMORY
-#include <sys/errno.h>
+#include <errno.h>
 #endif
 
 #include "circle.bitmap"
@@ -155,7 +155,6 @@ Boolean share;
 			IPC_CREAT|0777 );
 	    if ( img->shm_img.shmid < 0 )
 	    {
-		extern int errno;
 		if ( errno == ENOSPC )
 		{
 		    if ( !no_shared_space )
@@ -361,7 +360,6 @@ Boolean reallocate;
 	    XDestroyImage( image );
 	    if ( img->shm_pix.shmid < 0 )
 	    {
-		extern int errno;
 		if ( errno == ENOSPC )
 		{
 		    if ( !no_shared_space )