From cc9ac68d6ffb898d947669e16d5d42a99be3a70f 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@1007 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/Makefile.am | 6 +++--- program/src/{getopt.c => rrd_getopt.c} | 2 +- program/src/{getopt.h => rrd_getopt.h} | 0 program/src/{getopt1.c => rrd_getopt1.c} | 2 +- program/src/rrd_tool.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename program/src/{getopt.c => rrd_getopt.c} (99%) rename program/src/{getopt.h => rrd_getopt.h} (100%) rename program/src/{getopt1.c => rrd_getopt1.c} (99%) diff --git a/program/src/Makefile.am b/program/src/Makefile.am index 4845a169..f09a90c7 100644 --- a/program/src/Makefile.am +++ b/program/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/program/src/getopt.c b/program/src/rrd_getopt.c similarity index 99% rename from program/src/getopt.c rename to program/src/rrd_getopt.c index a2179c6f..b715ab03 100644 --- a/program/src/getopt.c +++ b/program/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/program/src/getopt.h b/program/src/rrd_getopt.h similarity index 100% rename from program/src/getopt.h rename to program/src/rrd_getopt.h diff --git a/program/src/getopt1.c b/program/src/rrd_getopt1.c similarity index 99% rename from program/src/getopt1.c rename to program/src/rrd_getopt1.c index d26b5845..14e1e885 100644 --- a/program/src/getopt1.c +++ b/program/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/program/src/rrd_tool.h b/program/src/rrd_tool.h index cf4f45c5..954dac89 100644 --- a/program/src/rrd_tool.h +++ b/program/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.30.2