Bugzilla bug 215581: checked in the rest of the GCC 3.2.2 for OS/2 patch

from Javier Pedemonte <pedemont@us.ibm.com>.
Modified Files: prio.h prtypes.h os2misc.c
This commit is contained in:
wtc%netscape.com 2003-09-16 20:35:10 +00:00
parent 343d587020
commit 4de49d2c52
3 changed files with 7 additions and 20 deletions

View File

@ -197,7 +197,12 @@ union PRNetAddr {
#if defined(XP_UNIX) || defined(XP_OS2)
struct { /* Unix domain socket address */
PRUint16 family; /* address family (AF_UNIX) */
#ifdef XP_OS2
char path[108]; /* null-terminated pathname */
/* bind fails if size is not 108. */
#else
char path[104]; /* null-terminated pathname */
#endif
} local;
#endif
};

View File

@ -158,21 +158,6 @@
#define PR_CALLBACK_DECL
#define PR_STATIC_CALLBACK(__x) static __x
#elif defined(XP_OS2_VACPP)
#define PR_EXPORT(__type) extern __type
#define PR_EXPORT_DATA(__type) extern __type
#define PR_IMPORT(__type) extern __type
#define PR_IMPORT_DATA(__type) extern __type
#define PR_EXTERN(__type) extern __type
#define PR_IMPLEMENT(__type) __type
#define PR_EXTERN_DATA(__type) extern __type
#define PR_IMPLEMENT_DATA(__type) __type
#define PR_CALLBACK _Optlink
#define PR_CALLBACK_DECL
#define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK
#else /* Unix */
#define PR_EXPORT(__type) extern __type

View File

@ -380,12 +380,9 @@ errorExit:
PRStatus _PR_DetachOS2Process(PRProcess *process)
{
/* This is basically what they did on Windows (CloseHandle)
* but I don't think it will do much on OS/2. A process is
* either created as a child or not. You can't 'detach' it
* later on.
/* On OS/2, a process is either created as a child or not.
* You can't 'detach' it later on.
*/
DosClose(process->md.pid);
PR_DELETE(process);
return PR_SUCCESS;
}