diff mbox

microblaze: include unix/sysdep.h

Message ID 1438841631-19091-1-git-send-email-vapier@gentoo.org
State New
Headers show

Commit Message

Mike Frysinger Aug. 6, 2015, 6:13 a.m. UTC
The semi-recent SYSCALL_CANCEL inclusion broke microblaze due to the
sysdep.h header not including the unix/sysdep.h header.  Include it
here like all other ports.

2015-08-05  Mike Frysinger  <vapier@gentoo.org>

	* sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
	in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
	and delete sys/syscall.h include.
---
 sysdeps/unix/sysv/linux/microblaze/sysdep.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Mike Frysinger Aug. 8, 2015, 3:41 a.m. UTC | #1
On 06 Aug 2015 02:13, Mike Frysinger wrote:
> The semi-recent SYSCALL_CANCEL inclusion broke microblaze due to the
> sysdep.h header not including the unix/sysdep.h header.  Include it
> here like all other ports.

pushed
-mike
diff mbox

Patch

diff --git a/sysdeps/unix/sysv/linux/microblaze/sysdep.h b/sysdeps/unix/sysv/linux/microblaze/sysdep.h
index 83c0340..9d5c542 100644
--- a/sysdeps/unix/sysv/linux/microblaze/sysdep.h
+++ b/sysdeps/unix/sysv/linux/microblaze/sysdep.h
@@ -16,8 +16,11 @@ 
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _LINUX_MICROBLAZE_SYSDEP_H
+#define _LINUX_MICROBLAZE_SYSDEP_H 1
+
+#include <sysdeps/unix/sysdep.h>
 #include <sysdeps/microblaze/sysdep.h>
-#include <sys/syscall.h>
 
 /* Defines RTLD_PRIVATE_ERRNO.  */
 #include <dl-sysdep.h>
@@ -305,3 +308,5 @@  SYSCALL_ERROR_LABEL_DCL:                            \
 # define PTR_DEMANGLE(var) (void) (var)
 
 #endif /* not __ASSEMBLER__ */
+
+#endif /* _LINUX_MICROBLAZE_SYSDEP_H */