зеркало из https://github.com/mozilla/pjs.git
Bug 175423: fixed the problems pointed out by gcc's -pedantic-errors flag.
Modified files: prwin16.h unix.c
This commit is contained in:
Родитель
d652c3179a
Коммит
3812d064b4
|
@ -108,7 +108,7 @@ struct PRMethodCallbackStr {
|
|||
void (PR_CALLBACK *free)( void *ptr );
|
||||
void * (PR_CALLBACK *getenv)( const char *name);
|
||||
int (PR_CALLBACK *putenv)( const char *assoc);
|
||||
// void * (PR_CALLBACK *perror)( const char *prefix );
|
||||
/* void * (PR_CALLBACK *perror)( const char *prefix ); */
|
||||
};
|
||||
|
||||
NSPR_API(void) PR_MDRegisterCallbacks(struct PRMethodCallbackStr *);
|
||||
|
|
|
@ -64,7 +64,8 @@
|
|||
* Make sure _PRSockLen_t is 32-bit, because we will cast a PRUint32* or
|
||||
* PRInt32* pointer to a _PRSockLen_t* pointer.
|
||||
*/
|
||||
#if defined(HAVE_SOCKLEN_T)
|
||||
#if defined(HAVE_SOCKLEN_T) \
|
||||
|| (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2)
|
||||
#define _PRSockLen_t socklen_t
|
||||
#elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \
|
||||
|| defined(AIX4_1) || defined(LINUX) || defined(SONY) \
|
||||
|
|
Загрузка…
Ссылка в новой задаче