Sorry for the package, but the following patch need to be applied to get
authorBruce Momjian <[email protected]>
Wed, 24 Apr 2002 01:56:20 +0000 (01:56 +0000)
committerBruce Momjian <[email protected]>
Wed, 24 Apr 2002 01:56:20 +0000 (01:56 +0000)
the new verion compiled on SCO Openserver 5.0.5 and Unixware 7.1.1

Nicolas Bazin

configure
configure.in
src/interfaces/odbc/convert.c
src/test/regress/pg_regress.sh

index 5195e197112f940068b70acb4edb13449412ab03..6cc92cb3b12862e208d5d99d8ef89a4d9be03366 100755 (executable)
--- a/configure
+++ b/configure
@@ -5375,13 +5375,13 @@ _ACEOF
 fi
 
 
-echo "$as_me:$LINENO: checking for main in -lsocket" >&5
-echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
-if test "${ac_cv_lib_socket_main+set}" = set; then
+echo "$as_me:$LINENO: checking for main in -lnsl" >&5
+echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
+if test "${ac_cv_lib_nsl_main+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsocket  $LIBS"
+LIBS="-lnsl  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 #include "confdefs.h"
@@ -5413,34 +5413,34 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_socket_main=yes
+  ac_cv_lib_nsl_main=yes
 else
   echo "$as_me: failed program was:" >&5
 cat conftest.$ac_ext >&5
-ac_cv_lib_socket_main=no
+ac_cv_lib_nsl_main=no
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 LIBS=$ac_check_lib_save_LIBS
 fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
-echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
-if test $ac_cv_lib_socket_main = yes; then
+echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
+echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
+if test $ac_cv_lib_nsl_main = yes; then
   cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBSOCKET 1
+#define HAVE_LIBNSL 1
 _ACEOF
 
-  LIBS="-lsocket $LIBS"
+  LIBS="-lnsl $LIBS"
 
 fi
 
 
-echo "$as_me:$LINENO: checking for main in -lnsl" >&5
-echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
-if test "${ac_cv_lib_nsl_main+set}" = set; then
+echo "$as_me:$LINENO: checking for main in -lsocket" >&5
+echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
+if test "${ac_cv_lib_socket_main+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lnsl  $LIBS"
+LIBS="-lsocket  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 #include "confdefs.h"
@@ -5472,23 +5472,23 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-  ac_cv_lib_nsl_main=yes
+  ac_cv_lib_socket_main=yes
 else
   echo "$as_me: failed program was:" >&5
 cat conftest.$ac_ext >&5
-ac_cv_lib_nsl_main=no
+ac_cv_lib_socket_main=no
 fi
 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 LIBS=$ac_check_lib_save_LIBS
 fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
-echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
-if test $ac_cv_lib_nsl_main = yes; then
+echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
+echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
+if test $ac_cv_lib_socket_main = yes; then
   cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBNSL 1
+#define HAVE_LIBSOCKET 1
 _ACEOF
 
-  LIBS="-lnsl $LIBS"
+  LIBS="-lsocket $LIBS"
 
 fi
 
index 5004b44c1880dbd3f3f4068126462f2b3d8eb65d..b60d67646616873d77ce6b6e4bf33555facb1251 100644 (file)
@@ -705,8 +705,8 @@ fi
 AC_CHECK_LIB(util,     setproctitle)
 AC_CHECK_LIB(m,        main)
 AC_CHECK_LIB(dl,       main)
-AC_CHECK_LIB(socket,   main)
 AC_CHECK_LIB(nsl,      main)
+AC_CHECK_LIB(socket,   main)
 AC_CHECK_LIB(ipc,      main)
 AC_CHECK_LIB(IPC,      main)
 AC_CHECK_LIB(lc,       main)
index a2e2ee8c778b78b9780eeda18bc34c05359d1e50..39998cc0c5737021b0b70f14073fcbe77e90d25c 100644 (file)
@@ -2720,7 +2720,7 @@ conv_from_octal(const unsigned char *s)
                                y = 0;
 
        for (i = 1; i <= 3; i++)
-               y += (s[i] - 48) * (int) pow(8, 3 - i);
+               y += (s[i] - '0') << (3  * (3 - i));
 
        return y;
 
@@ -2743,7 +2743,7 @@ conv_from_hex(const unsigned char *s)
                else
                        val = s[i] - '0';
 
-               y += val * (int) pow(16, 2 - i);
+               y += val << (4 * (2 - i));
        }
 
        return y;
@@ -2798,7 +2798,7 @@ conv_to_octal(unsigned char val)
 
        for (i = 4; i > 1; i--)
        {
-               x[i] = (val & 7) + 48;
+               x[i] = (val & 7) + '0';
                val >>= 3;
        }
 
index ae4e7a1315d6e03200285f0c920fd7eb313cdcaa..50cc719ee775789e893677d3b1f23d1a6da321f1 100644 (file)
@@ -173,7 +173,7 @@ esac
 # ----------
 
 case $host_platform in
-    *-*-qnx*)
+    *-*-qnx* | *-*-sco3.2v5*)
         DIFFFLAGS=-b;;
     *)
         DIFFFLAGS=-w;;