mldonkey-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-bugs] [bug #12683] Compile bug on Solaris - 'LC_CTYPE' undecla


From: spiralvoice
Subject: [Mldonkey-bugs] [bug #12683] Compile bug on Solaris - 'LC_CTYPE' undeclared
Date: Thu, 14 Apr 2005 10:37:47 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.6) Gecko/20050328 Firefox/1.0.2 (MOOX M2)

URL:
  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12683>

                 Summary: Compile bug on Solaris - 'LC_CTYPE' undeclared
                 Project: mldonkey, a multi-networks file-sharing client
            Submitted by: spiralvoice
            Submitted on: Don 14.04.2005 um 10:37
                Category: Core
                Severity: 4 - Important
              Item Group: Compilation problem
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: 2-5-30-5
                 Release: 
        Platform Version: Solaris
         Binaries Origin: CVS / Self compiled
                CPU type: Sparc

    _______________________________________________________

Details:

src/utils/lib/charsetstubs.c: In function `ml_get_default_language':
src/utils/lib/charsetstubs.c:1367: warning: implicit declaration of function
`setlocale'
src/utils/lib/charsetstubs.c:1367: error: `LC_CTYPE' undeclared (first use in
this function)
src/utils/lib/charsetstubs.c:1367: error: (Each undeclared identifier is
reported only once
src/utils/lib/charsetstubs.c:1367: error: for each function it appears in.)
src/utils/lib/charsetstubs.c:1367: warning: passing arg 1 of `strdup' makes
pointer from integer without a cast


config.h
/* Define to 1 if you have the <libcharset.h> header file. */
#define HAVE_LIBCHARSET_H 1
/* Define if you have libcharset with the locale_charset() function. */
#define LOCALECHARSET 1

Changing charsetstubs.c to this solves the problem:

#ifdef LOCALECHARSET
  #ifdef HAVE_LIBCHARSET_H
    #include <libcharset.h>
+    #include <locale.h>
  #else
    #include <localcharset.h>
  #endif
#else
  #include <locale.h>
  #include <langinfo.h>
#endif







    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12683>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]