$NetBSD: patch-bf,v 1.2 2006/10/19 11:51:27 markd Exp $ --- source/utilbin/infotext.c.orig 2005-10-25 04:58:07.000000000 +1300 +++ source/utilbin/infotext.c @@ -66,7 +66,7 @@ static void sge_infotext_welcome(void); static void sge_infotext_raw(char* format_string); static void sge_infotext_usage(void); static int sge_infotext_get_nr_of_substrings(char* buffer, char* substring); -#if defined(ALPHA) || defined(SOLARISAMD64) || defined(ALPHA5) || defined(ALINUX) || defined(HPUX) || __GNUC__ >= 3 +#if defined(ALPHA) || defined(SOLARISAMD64) || defined(ALPHA5) || defined(ALINUX) || defined(HPUX) || __GNUC__ >= 3 || defined(NETBSD) static char* sge_infotext_string_replace(dstring* buf, char* arg, char* what, char* with, int only_first ); #endif static char* sge_infotext_string_input_parsing(dstring* buf,char* string); @@ -545,7 +545,7 @@ static char* sge_infotext_string_output_ } -#if defined(ALPHA) || defined(SOLARISAMD64) || defined(ALPHA5) || defined(ALINUX) || defined(HPUX) || defined(IRIX65) || __GNUC__ >= 3 +#if defined(ALPHA) || defined(SOLARISAMD64) || defined(ALPHA5) || defined(ALINUX) || defined(HPUX) || defined(IRIX65) || __GNUC__ >= 3 || defined(NETBSD) static char* sge_infotext_string_replace(dstring* tmp_buf, char* arg, char* what, char* with, int only_first) { int i; char* p1; @@ -1050,7 +1050,7 @@ int main( int argc, char* argv[] ) { DPRINTF(("pass 4\n")); { if (real_args > 0) { -#if defined(SOLARISAMD64) || defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HPUX) || defined(IRIX65) || __GNUC__ >= 3 +#if defined(SOLARISAMD64) || defined(ALPHA) || defined(ALPHA5) || defined(ALINUX) || defined(HPUX) || defined(IRIX65) || __GNUC__ >= 3 || defined(NETBSD) for(i=0;i