From 525de03afa3de11be26bec1108c9f6721ca16577 Mon Sep 17 00:00:00 2001
From: Kris Kennaway <kris@FreeBSD.org>
Date: Mon, 15 Mar 2004 11:20:32 +0000
Subject: Fix build on amd64 (FreeBSD supports snprintf()), and respect CC and
 CFLAGS.

---
 x11-wm/ion3/files/patch-system.mk | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

(limited to 'x11-wm/ion3')

diff --git a/x11-wm/ion3/files/patch-system.mk b/x11-wm/ion3/files/patch-system.mk
index 6c1a5f30f507..e08a035fd705 100644
--- a/x11-wm/ion3/files/patch-system.mk
+++ b/x11-wm/ion3/files/patch-system.mk
@@ -1,5 +1,5 @@
 --- system.mk.orig	Sat Jan 19 15:15:13 2002
-+++ system.mk	Mon Apr 21 03:53:31 2003
++++ system.mk	Mon Mar 15 03:19:42 2004
 @@ -7,13 +7,13 @@
  ## Installation paths
  ##
@@ -33,6 +33,23 @@
  
  # SunOS/Solaris
  #X11_PREFIX=/usr/openwin
+@@ -52,14 +52,14 @@
+ # asprintf and vasprintf in the c library. (gnu libc has.)
+ # If HAS_SYSTEM_ASPRINTF is not defined, an implementation
+ # in libtu/sprintf_2.2/ is used.
+-#HAS_SYSTEM_ASPRINTF=1
++HAS_SYSTEM_ASPRINTF=1
+ 
+ 
+ ##
+ ## C compiler
+ ##
+ 
+-CC=gcc
++CC?=gcc
+ 
+ # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary,
+ # they're mainly for development use. So, if they cause trouble (not
 @@ -83,11 +83,11 @@
  # have unused variables.
  WARN=	-W -Wimplicit -Wreturn-type -Wswitch -Wcomment \
-- 
cgit v1.2.3