diff --git a/alliance/src/autostuff b/alliance/src/autostuff index abbdfd67..53083ebd 100755 --- a/alliance/src/autostuff +++ b/alliance/src/autostuff @@ -291,28 +291,28 @@ find $ordered_dirs -name configure.in | while read config; do echo "" >> configure.in echo "dnl Infos extracted from $config" >> configure.in - for version_line in `grep -h _CUR= $config`; do + for version_line in `grep -ah _CUR= $config`; do echo "$version_line" >> configure.in version_name=`echo $version_line | sed 's,=.*,,'` echo "AC_SUBST($version_name)" >> configure.in done - for version_line in `grep -h _REV= $config`; do + for version_line in `grep -ah _REV= $config`; do echo "$version_line" >> configure.in version_name=`echo $version_line | sed 's,=.*,,'` echo "AC_SUBST($version_name)" >> configure.in done - for version_line in `grep -h _REL= $config`; do + for version_line in `grep -ah _REL= $config`; do echo "$version_line" >> configure.in version_name=`echo $version_line | sed 's,=.*,,'` echo "AC_SUBST($version_name)" >> configure.in done - for dll_line in `grep -h _DLL_VERSION= $config`; do + for dll_line in `grep -ah _DLL_VERSION= $config`; do echo "$dll_line" >> configure.in dll_name=`echo $dll_line | sed 's,=.*,,'` echo "AC_SUBST($dll_name)" >> configure.in done - for version_line in `grep -h _VERSION= $config | grep -v DLL`; do + for version_line in `grep -ah _VERSION= $config | grep -v DLL`; do echo "$version_line" >> configure.in version_name=`echo $version_line | sed 's,=.*,,'` echo "AC_SUBST($version_name)" >> configure.in diff --git a/alliance/src/nero/src/UOpts.cpp b/alliance/src/nero/src/UOpts.cpp index dc2e5b48..a369fd6e 100644 --- a/alliance/src/nero/src/UOpts.cpp +++ b/alliance/src/nero/src/UOpts.cpp @@ -16,13 +16,9 @@ -//# include "unistd.h" +# include # include "UDefs.h" -extern "C" { - int getopt(int argc, char* const *argv, const char *sf); -} - // +----------------------------------------------------------------+ // | Methods Definitions | @@ -121,7 +117,7 @@ void COpts::getopts (int argc, char *argv[]) throw (except_done) extern char *optarg; int key; long key_index; - string key_string; + string key_string; const char *short_format; @@ -131,7 +127,7 @@ void COpts::getopts (int argc, char *argv[]) throw (except_done) // Loop over getopt. while (true) { - key = getopt (argc, argv, short_format); + key = ::getopt (argc, argv, short_format); if (key == -1) break;