Fix a bunch of dumb typos and omissions.

This commit is contained in:
athenian200 2019-10-04 04:37:51 -05:00 committed by Roy Tam
commit cbf60a2058
12 changed files with 12 additions and 12 deletions

View file

@ -63,7 +63,7 @@ elif CONFIG['OS_TARGET'] == 'SunOS':
if CONFIG['CPU_ARCH'] == 'x86_64':
SOURCES += ['/nsprpub/pr/src/md/unix/os_SunOS_x86_64.s']
elif CONFIG['CPU_ARCH'] == 'x86':
SOURCES += ['/nsprpub/pr/src/md/unix/os_SunOS/x86.s']
SOURCES += ['/nsprpub/pr/src/md/unix/os_SunOS_x86.s']
elif CONFIG['OS_TARGET'] == 'WINNT':
OS_LIBS += [
'advapi32',

View file

@ -286,7 +286,7 @@ PluginModuleChild::InitForChrome(const std::string& aPluginFilename,
// TODO: use PluginPRLibrary here
#if defined(OS_LINUX) || defined(OS_BSD)
#if defined(OS_LINUX) || defined(OS_BSD) || defined(OS_SOLARIS)
mShutdownFunc =
(NP_PLUGINSHUTDOWN) PR_FindFunctionSymbol(mLibrary, "NP_Shutdown");

View file

@ -138,7 +138,7 @@ MessagePumpForUI::MessagePumpForUI()
int flags = fcntl(fds[0], F_GETFL,0);
if (flags == -1)
flags = 0;
fntl(fds[0], F_SETFL, flags | O_NDELAY);
fcntl(fds[0], F_SETFL, flags | O_NDELAY);
#endif
wakeup_pipe_read_ = fds[0];
wakeup_pipe_write_ = fds[1];

View file

@ -15,7 +15,7 @@
#if defined(OS_WIN)
#include <windows.h>
#elif defined(OS_LINUX)
#elif defined(OS_LINUX) || defined(OS_SOLARIS)
#include "chrome/common/x11_util.h"
#endif

View file

@ -73,7 +73,8 @@ js::GetNativeStackBaseImpl()
JS_STATIC_ASSERT(JS_STACK_GROWTH_DIRECTION < 0);
void js::GetNativeStackBaseImpl()
void*
js::GetNativeStackBaseImpl()
{
stack_t st;
stack_getbounds(&st);

View file

@ -52,5 +52,5 @@ FINAL_LIBRARY = 'gkmedias'
# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True
if CONFIG['GNU_CC']
CFLAGS += ['std=c89']
if CONFIG['GNU_CC']:
CFLAGS += ['-std=c89']

View file

@ -1206,7 +1206,7 @@ case "$target" in
fi
;;
*-solaris*
*-solaris*)
MOZ_FIX_LINK_PATHS="-L${DIST}/bin"
;;

View file

@ -274,6 +274,7 @@ if CONFIG['OS_ARCH'] == 'SunOS':
OS_LIBS += [
'elf',
'demangle',
'sendfile',
]
if CONFIG['OS_ARCH'] == 'FreeBSD':

View file

@ -225,7 +225,6 @@ static void fpehandler(int signum, siginfo_t *si, void *context)
#endif
#endif
}
}
#endif
void InstallSignalHandlers(const char *aProgname)

View file

@ -1151,7 +1151,7 @@ ResidentPeakDistinguishedAmount(int64_t* aN)
#ifdef XP_MACOSX
*aN = usage.ru_maxrss;
#elif defined(XP_SOLARIS)
*aN = usage.ru.maxrss * getpagesize();
*aN = usage.ru_maxrss * getpagesize();
#else
*aN = usage.ru_maxrss * 1024;
#endif

View file

@ -1607,7 +1607,6 @@ nsLocalFile::IsExecutable(bool* aResult)
return NSRESULT_FOR_ERRNO();
}
#endif
if (*aResult || errno == EACCES) {
if (*aResult || errno == EACCES) {
return NS_OK;
}

View file

@ -56,7 +56,7 @@ if CONFIG['OS_ARCH'] == 'SunOS':
'xptcinvoke_x86_64_unix.cpp',
'xptcstubs_x86_64_linux.cpp'
]
elif CONFIG['OS_TEST'] == 'x86':
elif '86' in CONFIG['OS_TEST']:
SOURCES += [
'xptcinvoke_gcc_x86_unix.cpp',
'xptcstubs_gcc_x86_unix.cpp'