Landing modular netlib on UNIX

git-svn-id: svn://10.0.0.236/trunk@2879 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scullin
1998-06-02 00:23:17 +00:00
parent e9b46ed3c1
commit 0c084c2df2
15 changed files with 167 additions and 64 deletions

View File

@@ -38,8 +38,13 @@ extern "C" {
#include "remoturl.h"
#include "netcache.h"
#if defined(XP_WIN) || defined(XP_OS2)
extern char *XP_AppCodeName;
extern char *XP_AppVersion;
#else
extern const char *XP_AppCodeName;
extern const char *XP_AppVersion;
#endif
};
/*
@@ -70,11 +75,9 @@ nsNetlibService::nsNetlibService()
/* Initialize netlib with 32 sockets... */
NET_InitNetLib(0, 32);
/* XXX: How should the User Agent get initialized? */
XP_AppCodeName = strdup("Mozilla");
XP_AppVersion = strdup("5.0 Netscape/5.0 (Windows;I;x86;en)");
}