summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/libc/port/threads/alloc.c3
-rw-r--r--usr/src/uts/common/sys/syscall.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/lib/libc/port/threads/alloc.c b/usr/src/lib/libc/port/threads/alloc.c
index 5851212ad4..99f68000d2 100644
--- a/usr/src/lib/libc/port/threads/alloc.c
+++ b/usr/src/lib/libc/port/threads/alloc.c
@@ -21,13 +21,14 @@
/*
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, Joyent, Inc. All rights reserved.
*/
#include "lint.h"
#include "thr_uberdata.h"
#include <sys/syscall.h>
-extern int __systemcall6(sysret_t *, int, ...);
+extern long __systemcall6(sysret_t *, int, ...);
/*
* This is a small and simple power of two memory allocator that is
diff --git a/usr/src/uts/common/sys/syscall.h b/usr/src/uts/common/sys/syscall.h
index eee273a25f..083e68ee0a 100644
--- a/usr/src/uts/common/sys/syscall.h
+++ b/usr/src/uts/common/sys/syscall.h
@@ -23,6 +23,7 @@
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
* Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013 by Delphix. All rights reserved.
+ * Copyright (c) 2015, Joyent, Inc. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -507,8 +508,8 @@ typedef struct { /* return values from system call */
#if !defined(_KERNEL)
-extern int syscall(int, ...);
-extern int __systemcall(sysret_t *, int, ...);
+extern long syscall(int, ...);
+extern long __systemcall(sysret_t *, int, ...);
extern int __set_errno(int);
#endif /* _KERNEL */