bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Don't build snprintf.o if you don't need to


From: Andrew Stribblehill
Subject: [PATCH] Don't build snprintf.o if you don't need to
Date: Wed, 26 Feb 2003 18:00:00 +0000
User-agent: Mutt/1.5.3i

The following patch should make pub/snprintf.c take heed of the test
that ./configure does to see if snprintf exists:

diff -Naur cfengine-2.0.5-old/pub/snprintf.h cfengine-2.0.5/pub/snprintf.h
--- cfengine-2.0.5-old/pub/snprintf.h   2001-05-21 09:38:34.000000000 +0100
+++ cfengine-2.0.5/pub/snprintf.h       2003-02-26 17:51:27.000000000 +0000
@@ -4,6 +4,7 @@
 #define PORTABLE_SNPRINTF_VERSION_MAJOR 2
 #define PORTABLE_SNPRINTF_VERSION_MINOR 2
 
+#include "../src/conf.h"
 #ifdef HAVE_SNPRINTF
 #include <stdio.h>
 #else

Please note that it's untested, but it should work.

-- 
GERMAN BIGHT HUMBER
EAST OR SOUTHEAST 4 OR 5 DECREASING 3 IN SOUTH GERMAN BIGHT. RAIN
LATER. MODERATE OCCASIONALLY POOR, BECOMING GOOD




reply via email to

[Prev in Thread] Current Thread [Next in Thread]