mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
343d587020
commit
4de49d2c52
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user