]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
a couple of small Solaris-related fixes
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 3 Jul 2008 22:18:38 +0000 (22:18 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 3 Jul 2008 22:18:38 +0000 (22:18 +0000)
(closes issue #11885)
Reported by: snuffy, asgaroth

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@127892 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
main/editline/np/vis.c

index 11e35e10b57ec8183f60c2d13f5e0beb027c91a9..1398dd5a61877ef20ea7e7cd203c38e9934f3d64 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -281,7 +281,7 @@ else
 endif
 
 ifeq ($(OSARCH),SunOS)
-  SOLINK=-shared -fpic -L/usr/local/ssl/lib
+  SOLINK=-shared -fpic -L/usr/local/ssl/lib -lrt
 endif
 
 SUBMAKE=$(MAKE) --quiet --no-print-directory
index 7d9117faaeb6e36b4b5ff13fd92fa0e585d3e57e..bd8192440ad3c976b1312e69b22b38cc1f45e9a3 100644 (file)
@@ -44,6 +44,7 @@ __RCSID("$NetBSD: vis.c,v 1.22 2002/03/23 17:38:27 christos Exp $");
 #include <assert.h>
 #include "np/vis.h"
 #include <stdlib.h>
+#include <stdint.h>
 
 #ifdef __weak_alias
 __weak_alias(strsvis,_strsvis)
@@ -167,8 +168,8 @@ do {                                                                              \
        if (isc) break;                                                       \
        if (isextra || ((c & 0177) == ' ') || (flag & VIS_OCTAL)) {           \
                *dst++ = '\\';                                                \
-               *dst++ = (u_char)(((u_int32_t)(u_char)c >> 6) & 03) + '0';    \
-               *dst++ = (u_char)(((u_int32_t)(u_char)c >> 3) & 07) + '0';    \
+               *dst++ = (u_char)(((uint32_t)(u_char)c >> 6) & 03) + '0';     \
+               *dst++ = (u_char)(((uint32_t)(u_char)c >> 3) & 07) + '0';     \
                *dst++ =                             (c       & 07) + '0';    \
        } else {                                                              \
                if ((flag & VIS_NOSLASH) == 0) *dst++ = '\\';                 \