VirtualBox

Changeset 102239 in vbox


Ignore:
Timestamp:
Nov 22, 2023 10:16:52 AM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160364
Message:

libs/xpcom: Remove unused code in nsprpub, bugref:10545

Location:
trunk/src/libs/xpcom18a4
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r102236 r102239  
    178178NSPRPUB-MD-HEADERS_IFFLAGS = -m 644
    179179NSPRPUB-MD-HEADERS_SOURCES = \
    180         nsprpub/pr/include/md/_unixos.h \
    181180        nsprpub/pr/include/md/_pth.h \
    182181        nsprpub/pr/include/md/prosdep.h
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/prosdep.h

    r102233 r102239  
    4242** Get OS specific header information
    4343*/
    44 #include "prtypes.h"
    45 #include "prinrval.h"
     44#include <unistd.h>
     45#include <stddef.h>
     46#include <errno.h>
    4647
    4748#ifndef XP_UNIX
     
    5556PR_BEGIN_EXTERN_C
    5657
    57 #if defined(LINUX) || defined(DARWIN) || defined(NETBSD) || defined(FREEBSD) || defined(OPENBSD)
    58 
    59 NSPR_API(PRIntervalTime) _PR_UNIX_GetInterval(void);
    60 NSPR_API(PRIntervalTime) _PR_UNIX_TicksPerSecond(void);
    61 
    62 #define _MD_GET_INTERVAL                _PR_UNIX_GetInterval
    63 #define _MD_INTERVAL_PER_SEC            _PR_UNIX_TicksPerSecond
    64 
    65 #elif defined(SOLARIS)
    66 
    67 NSPR_API(PRIntervalTime) _MD_Solaris_GetInterval(void);
    68 NSPR_API(PRIntervalTime) _MD_Solaris_TicksPerSecond(void);
    69 
    70 # define _MD_GET_INTERVAL               _MD_Solaris_GetInterval
    71 # define _MD_INTERVAL_PER_SEC           _MD_Solaris_TicksPerSecond
    72 
     58/*
     59 * The standard (XPG4) gettimeofday() (from BSD) takes two arguments.
     60 * On some SVR4 derivatives, gettimeofday() takes only one argument.
     61 * The GETTIMEOFDAY macro is intended to hide this difference.
     62 */
     63#ifdef HAVE_SVID_GETTOD
     64#define GETTIMEOFDAY(tp) gettimeofday(tp)
    7365#else
    74 # error unknown Unix flavor
     66#define GETTIMEOFDAY(tp) gettimeofday((tp), NULL)
    7567#endif
    7668
    77 #include "md/_unixos.h"
     69
    7870#include "md/_pth.h"
    7971
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette