mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
Check for defined(__i386__) instead of just defined(i386) since the compiler
will be updated to only define(__i386__) for ANSI cleanliness.
This commit is contained in:
parent
448f7629ea
commit
8e5e1ed874
2 changed files with 5 additions and 5 deletions
|
|
@ -165,7 +165,7 @@ joyread(dev_t dev, struct uio *uio, int flag)
|
|||
int state = 0;
|
||||
struct timespec x, y;
|
||||
struct joystick c;
|
||||
#ifndef i386
|
||||
#ifndef __i386__
|
||||
int s;
|
||||
|
||||
s = splhigh();
|
||||
|
|
@ -192,7 +192,7 @@ joyread(dev_t dev, struct uio *uio, int flag)
|
|||
if (timespecisset(&x) && timespecisset(&y))
|
||||
break;
|
||||
}
|
||||
#ifndef i386
|
||||
#ifndef __i386__
|
||||
splx(s);
|
||||
#else
|
||||
enable_intr ();
|
||||
|
|
|
|||
|
|
@ -105,9 +105,9 @@ void nspattachsubr(struct nsp_softc *);
|
|||
int nspprint(void *, const char *);
|
||||
int nspintr(void *);
|
||||
|
||||
#if defined(i386)
|
||||
#if defined(__i386__)
|
||||
#define SOFT_INTR_REQUIRED(slp) (softintr((slp)->sl_irq))
|
||||
#else /* !i386 */
|
||||
#else /* !__i386__ */
|
||||
#define SOFT_INTR_REQUIRED(slp)
|
||||
#endif /* !i386 */
|
||||
#endif /* !__i386__ */
|
||||
#endif /* !_NSPVAR_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue