summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Util.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-01-06 18:16:35 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-01-06 18:16:35 +0000
commite278e1613a0cc442b316ba26914dcf26a8e8243f (patch)
tree8225ce18fc89466b6c3ead500199085f2eb6a221 /cpp/src/IcePatch2/Util.cpp
parentFixing a bug where the makebindist script wasn't makedist'ing vb (diff)
downloadice-e278e1613a0cc442b316ba26914dcf26a8e8243f.tar.bz2
ice-e278e1613a0cc442b316ba26914dcf26a8e8243f.tar.xz
ice-e278e1613a0cc442b316ba26914dcf26a8e8243f.zip
Fixed SunOS C++ compiler warnings (bug 723)
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r--cpp/src/IcePatch2/Util.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp
index dd4d6b0a7ef..09bfbce039a 100644
--- a/cpp/src/IcePatch2/Util.cpp
+++ b/cpp/src/IcePatch2/Util.cpp
@@ -38,6 +38,9 @@ const char* IcePatch2::logFile = "IcePatch2.log";
//
#ifdef __sun
+extern "C"
+{
+
static int
scandir(const char* dir, struct dirent*** namelist,
int (*select)(const struct dirent*),
@@ -101,6 +104,8 @@ alphasort(const void* v1, const void* v2)
return(strcmp((*a)->d_name, (*b)->d_name));
}
+}
+
#endif
using namespace std;