Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b502421 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC]: Fix __KERNEL_SYSCALLS__ defining in envctrl.c and bbc_envctrl.c



It needs to happen before any header includes because nowadays
some things implicitly include asm/unistd.h which ends up being
before the __KERNEL_SYSCALLS__ define gets done.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d1aea8d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4,13 +4,14 @@
 * Copyright (C) 2001 David S. Miller (davem@redhat.com)
 */

#define __KERNEL_SYSCALLS__

#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <asm/oplib.h>
#include <asm/ebus.h>
#define __KERNEL_SYSCALLS__
static int errno;
#include <asm/unistd.h>

+2 −1
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@
 *              Daniele Bellucci <bellucda@tiscali.it>
 */

#define __KERNEL_SYSCALLS__

#include <linux/config.h>
#include <linux/module.h>
#include <linux/sched.h>
@@ -35,7 +37,6 @@
#include <asm/uaccess.h>
#include <asm/envctrl.h>

#define __KERNEL_SYSCALLS__
static int errno;
#include <asm/unistd.h>