From 12ba1178e73143925adc7d376814a44247c6f554 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 14 Feb 2007 18:48:21 +0000 Subject: [PATCH] renamed getopt to rrd_getopt to avoid confusion on some systems ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1007 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/Makefile.am | 6 +++--- src/{getopt.c => rrd_getopt.c} | 2 +- src/{getopt.h => rrd_getopt.h} | 0 src/{getopt1.c => rrd_getopt1.c} | 2 +- src/rrd_tool.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/{getopt.c => rrd_getopt.c} (99%) rename src/{getopt.h => rrd_getopt.h} (100%) rename src/{getopt1.c => rrd_getopt1.c} (99%) diff --git a/src/Makefile.am b/src/Makefile.am index 4845a16..f09a90c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -13,8 +13,8 @@ RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@ AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@ UPD_C_FILES = \ - getopt.c \ - getopt1.c \ + rrd_getopt.c \ + rrd_getopt1.c \ parsetime.c \ rrd_hw.c \ rrd_diff.c \ @@ -51,7 +51,7 @@ noinst_HEADERS = \ art_rgba_svp.h \ unused.h \ rrd_gfx.h \ - getopt.h parsetime.h \ + rrd_getopt.h parsetime.h \ rrd_format.h rrd_tool.h rrd_xport.h rrd.h rrd_hw.h rrd_rpncalc.h \ rrd_nan_inf.h fnv.h rrd_graph.h rrd_afm.h rrd_afm_data.h \ rrd_is_thread_safe.h diff --git a/src/getopt.c b/src/rrd_getopt.c similarity index 99% rename from src/getopt.c rename to src/rrd_getopt.c index a2179c6..b715ab0 100644 --- a/src/getopt.c +++ b/src/rrd_getopt.c @@ -110,7 +110,7 @@ GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ -#include "getopt.h" +#include "rrd_getopt.h" /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, diff --git a/src/getopt.h b/src/rrd_getopt.h similarity index 100% rename from src/getopt.h rename to src/rrd_getopt.h diff --git a/src/getopt1.c b/src/rrd_getopt1.c similarity index 99% rename from src/getopt1.c rename to src/rrd_getopt1.c index d26b584..14e1e88 100644 --- a/src/getopt1.c +++ b/src/rrd_getopt1.c @@ -23,7 +23,7 @@ #include "../rrd_config.h" #endif -#include "getopt.h" +#include "rrd_getopt.h" #if !defined (__STDC__) || !__STDC__ /* This is a separate conditional since some stdc systems diff --git a/src/rrd_tool.h b/src/rrd_tool.h index cf4f45c..954dac8 100644 --- a/src/rrd_tool.h +++ b/src/rrd_tool.h @@ -115,7 +115,7 @@ int isnan(double value); #endif /* local include files -- need to be after the system ones */ -#include "getopt.h" +#include "rrd_getopt.h" #include "rrd_format.h" #ifndef max -- 2.11.0