Elinks folks,

The enclosed is a patch for porting Elinks to OpenSolaris.

Please acknowledge acceptance of this patch.

-- mark
--
<http://www.sun.com>      * Mark A. Carlson *
Sr. Architect

*Systems Group*
Phone x69559 / 303-223-6139
Email mark.carl...@sun.com
        


--- elinks-0.11.5/src/session/session.c 2009-01-28 03:26:15.595141936 -0800
+++ elinks-0.11.5-new/src/session/session.c     2009-01-28 03:26:06.024737496 
-0800
@@ -423,7 +423,11 @@ load_ecmascript_imports(struct session *
 #define load_ecmascript_imports(ses, doc_view)
 #endif
 
+#if defined (__SUNPRO_C)
+static inline void
+#else
 inline void
+#endif
 load_frames(struct session *ses, struct document_view *doc_view)
 {
        struct document *document = doc_view->document;
--- elinks-0.11.5/src/util/conv.c       2009-01-28 03:26:35.022458560 -0800
+++ elinks-0.11.5-new/src/util/conv.c   2009-01-28 03:25:09.212165347 -0800
@@ -52,8 +52,13 @@ elinks_ulongcat(unsigned char *s, unsign
                unsigned char fillchar, unsigned int base,
                unsigned int upper)
 {
+#if defined (__SUNPRO_C)
+       unsigned char unum[]= "0123456789ABCDEF";
+       unsigned char lnum[]= "0123456789abcdef";
+#else
        static unsigned char unum[]= "0123456789ABCDEF";
        static unsigned char lnum[]= "0123456789abcdef";
+#endif
        unsigned char *to_num = (unsigned char *) (upper ? &unum : &lnum);
        unsigned int start = slen ? *slen : 0;
        unsigned int nlen = 1; /* '0' is one char, we can't have less. */
_______________________________________________
elinks-dev mailing list
elinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to