summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/sh/_mmap.c1
-rw-r--r--libc/sysdeps/linux/sh/sysdep.h13
-rw-r--r--libc/sysdeps/linux/sh/vfork.c33
3 files changed, 12 insertions, 35 deletions
diff --git a/libc/sysdeps/linux/sh/_mmap.c b/libc/sysdeps/linux/sh/_mmap.c
index 3b68e094d..70155b028 100644
--- a/libc/sysdeps/linux/sh/_mmap.c
+++ b/libc/sysdeps/linux/sh/_mmap.c
@@ -21,6 +21,7 @@
#include <unistd.h>
#include <sys/mman.h>
+#include <sys/syscall.h>
#ifdef HIOS
diff --git a/libc/sysdeps/linux/sh/sysdep.h b/libc/sysdeps/linux/sh/sysdep.h
index acaea48e4..759753415 100644
--- a/libc/sysdeps/linux/sh/sysdep.h
+++ b/libc/sysdeps/linux/sh/sysdep.h
@@ -17,7 +17,8 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-
+#define __need_uClibc_config_h 1
+#include <bits/uClibc_config.h>
/* Define a macro we can use to construct the asm name for a C symbol. */
#ifdef NO_UNDERSCORES
@@ -34,12 +35,20 @@
#endif
#endif
-
/* Mark the end of function named SYM. This is used on some platforms
to generate correct debugging information. */
#ifndef END
#define END(sym)
#endif
+
+#ifndef ASM_GLOBAL_DIRECTIVE
+#define ASM_GLOBAL_DIRECTIVE .global
+#endif
+
+#ifndef C_SYMBOL_NAME
+#define C_SYMBOL_NAME(name) name
+#endif
+
#ifdef __ASSEMBLER__
/* Syntactic details of assembler. */
diff --git a/libc/sysdeps/linux/sh/vfork.c b/libc/sysdeps/linux/sh/vfork.c
deleted file mode 100644
index 50393814a..000000000
--- a/libc/sysdeps/linux/sh/vfork.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * vfork syscall for uClibc
- *
- * Copyright (C) 2000 by Lineo, inc. Written by Erik Andersen
- * <andersen@lineo.com>, <andersee@debian.org>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Library General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#include <errno.h>
-#include <features.h>
-#include <sys/types.h>
-#include <sys/syscall.h>
-
-
-//#define __NR_vfork 190
-#include <unistd.h>
-_syscall0(pid_t, vfork);
-