Fossil SCM
Experimental support for Solaris 10
Commit
fd39ef8261131b7f2a000b1d35c32364eea6caa8
Parent
d73b1b5042838f4…
2 files changed
+3
+4
M
Makefile
+3
| --- Makefile | ||
| +++ Makefile | ||
| @@ -59,13 +59,16 @@ | ||
| 59 | 59 | # You should not need to change anything below this line |
| 60 | 60 | ############################################################################### |
| 61 | 61 | # |
| 62 | 62 | # Automatic platform-specific options. |
| 63 | 63 | HOST_OS!= uname -s |
| 64 | +# Some makes use a different syntax | |
| 65 | +HOST_OS_ALT :sh = uname -s | |
| 64 | 66 | |
| 65 | 67 | LIB.SunOS= -lsocket -lnsl |
| 66 | 68 | LIB += $(LIB.$(HOST_OS)) |
| 69 | +LIB += $(LIB.$(HOST_OS_ALT)) | |
| 67 | 70 | |
| 68 | 71 | TCC.DragonFly += -DUSE_PREAD |
| 69 | 72 | TCC.FreeBSD += -DUSE_PREAD |
| 70 | 73 | TCC.NetBSD += -DUSE_PREAD |
| 71 | 74 | TCC.OpenBSD += -DUSE_PREAD |
| 72 | 75 |
| --- 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 @@ | ||
| 19 | 19 | ** querying information about users. |
| 20 | 20 | */ |
| 21 | 21 | #include "config.h" |
| 22 | 22 | #include "user.h" |
| 23 | 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 | |
| 24 | 28 | |
| 25 | 29 | /* |
| 26 | 30 | ** Strip leading and trailing space from a string and add the string |
| 27 | 31 | ** onto the end of a blob. |
| 28 | 32 | */ |
| 29 | 33 |
| --- 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 |