ports/161782: [PATCH] emulators/dosbox: Fix build with gcc46

Christian Mangin cmangin at arobas.net
Tue Oct 18 21:00:19 UTC 2011


>Number:         161782
>Category:       ports
>Synopsis:       [PATCH] emulators/dosbox: Fix build with gcc46
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 18 21:00:18 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Christian Mangin
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD titan 8.2-STABLE FreeBSD 8.2-STABLE #5: Thu Oct 6 12:36:11 EDT 2011 cmangin at titan:/usr/obj/usr/src/sys/TITAN amd64


>Description:
	This port fails to build with USE_GCC=4.6
>How-To-Repeat:
>Fix:

	Patch attached with submission.	

--- patch.dosbox begins here ---
diff -ruN dosbox.orig/files/patch-include-dos_inc.h dosbox/files/patch-include-dos_inc.h
--- dosbox.orig/files/patch-include-dos_inc.h	1969-12-31 19:00:00.000000000 -0500
+++ dosbox/files/patch-include-dos_inc.h	2011-10-18 12:07:45.085017000 -0400
@@ -0,0 +1,11 @@
+--- include/dos_inc.h.orig	2010-05-10 13:43:54.000000000 -0400
++++ include/dos_inc.h	2011-10-18 12:05:51.186449095 -0400
+@@ -28,6 +28,8 @@
+ #include "mem.h"
+ #endif
+ 
++#include <stddef.h>
++
+ #ifdef _MSC_VER
+ #pragma pack (1)
+ #endif
diff -ruN dosbox.orig/files/patch-include-setup.h dosbox/files/patch-include-setup.h
--- dosbox.orig/files/patch-include-setup.h	1969-12-31 19:00:00.000000000 -0500
+++ dosbox/files/patch-include-setup.h	2011-10-18 12:07:45.085017000 -0400
@@ -0,0 +1,11 @@
+--- include/setup.h.orig	2011-10-18 12:06:07.227092555 -0400
++++ include/setup.h	2011-10-18 12:06:26.200853712 -0400
+@@ -21,6 +21,8 @@
+ #ifndef DOSBOX_SETUP_H
+ #define DOSBOX_SETUP_H
+ 
++#include <stdio.h>
++
+ #ifdef _MSC_VER
+ #pragma warning ( disable : 4786 )
+ #pragma warning ( disable : 4290 )
--- patch.dosbox ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list