Fossil SCM

Experimental support for Solaris 10

ben 2011-05-21 15:39 UTC bens-expr
Commit fd39ef8261131b7f2a000b1d35c32364eea6caa8
2 files changed +3 +4
+3
--- Makefile
+++ Makefile
@@ -59,13 +59,16 @@
5959
# You should not need to change anything below this line
6060
###############################################################################
6161
#
6262
# Automatic platform-specific options.
6363
HOST_OS!= uname -s
64
+# Some makes use a different syntax
65
+HOST_OS_ALT :sh = uname -s
6466
6567
LIB.SunOS= -lsocket -lnsl
6668
LIB += $(LIB.$(HOST_OS))
69
+LIB += $(LIB.$(HOST_OS_ALT))
6770
6871
TCC.DragonFly += -DUSE_PREAD
6972
TCC.FreeBSD += -DUSE_PREAD
7073
TCC.NetBSD += -DUSE_PREAD
7174
TCC.OpenBSD += -DUSE_PREAD
7275
--- Makefile
+++ Makefile
@@ -59,13 +59,16 @@
59 # You should not need to change anything below this line
60 ###############################################################################
61 #
62 # Automatic platform-specific options.
63 HOST_OS!= uname -s
 
 
64
65 LIB.SunOS= -lsocket -lnsl
66 LIB += $(LIB.$(HOST_OS))
 
67
68 TCC.DragonFly += -DUSE_PREAD
69 TCC.FreeBSD += -DUSE_PREAD
70 TCC.NetBSD += -DUSE_PREAD
71 TCC.OpenBSD += -DUSE_PREAD
72
--- Makefile
+++ Makefile
@@ -59,13 +59,16 @@
59 # You should not need to change anything below this line
60 ###############################################################################
61 #
62 # Automatic platform-specific options.
63 HOST_OS!= uname -s
64 # Some makes use a different syntax
65 HOST_OS_ALT :sh = uname -s
66
67 LIB.SunOS= -lsocket -lnsl
68 LIB += $(LIB.$(HOST_OS))
69 LIB += $(LIB.$(HOST_OS_ALT))
70
71 TCC.DragonFly += -DUSE_PREAD
72 TCC.FreeBSD += -DUSE_PREAD
73 TCC.NetBSD += -DUSE_PREAD
74 TCC.OpenBSD += -DUSE_PREAD
75
+4
--- src/user.c
+++ src/user.c
@@ -19,10 +19,14 @@
1919
** querying information about users.
2020
*/
2121
#include "config.h"
2222
#include "user.h"
2323
24
+#if defined(__sun__) || defined(sun)
25
+ /* On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. */
26
+ #define getpass getpassphrase
27
+#endif
2428
2529
/*
2630
** Strip leading and trailing space from a string and add the string
2731
** onto the end of a blob.
2832
*/
2933
--- src/user.c
+++ src/user.c
@@ -19,10 +19,14 @@
19 ** querying information about users.
20 */
21 #include "config.h"
22 #include "user.h"
23
 
 
 
 
24
25 /*
26 ** Strip leading and trailing space from a string and add the string
27 ** onto the end of a blob.
28 */
29
--- src/user.c
+++ src/user.c
@@ -19,10 +19,14 @@
19 ** querying information about users.
20 */
21 #include "config.h"
22 #include "user.h"
23
24 #if defined(__sun__) || defined(sun)
25 /* On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. */
26 #define getpass getpassphrase
27 #endif
28
29 /*
30 ** Strip leading and trailing space from a string and add the string
31 ** onto the end of a blob.
32 */
33

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button