Fossil

Check-in [fd39ef82]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Experimental support for Solaris 10
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | bens-expr
Files: files | file ages | folders
SHA1: fd39ef8261131b7f2a000b1d35c32364eea6caa8
User & Date: ben 2011-05-21 15:39:03
Context
2011-05-21
16:18
Slightly hacky way of putting versioned properties in .fossil-settings dir. Version ignore-glob, binary-glob, crnl-glob and manifest. Glob splitting allows line breaks as well as spaces and commas. check-in: 56b75c76 user: ben tags: bens-expr
15:39
Experimental support for Solaris 10 check-in: fd39ef82 user: ben tags: bens-expr
15:38
Create new branch named "bens-expr" check-in: d73b1b50 user: ben tags: bens-expr
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to Makefile.

    57     57   TCLSH = tclsh
    58     58   
    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   TCC += $(TCC.$(HOST_OS))
    73     76   
    74     77   include $(SRCDIR)/main.mk

Changes to src/user.c.

    17     17   **
    18     18   ** Commands and procedures used for creating, processing, editing, and
    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   static void strip_string(Blob *pBlob, char *z){
    30     34     int i;