diff --git a/newlib/libc/sys/rtems/include/machine/param.h b/newlib/libc/sys/rtems/include/machine/param.h index 4892b6174..e37d0561e 100644 --- a/newlib/libc/sys/rtems/include/machine/param.h +++ b/newlib/libc/sys/rtems/include/machine/param.h @@ -71,6 +71,7 @@ #define MAXPAGESIZES 1 /* maximum number of supported page sizes */ +#ifdef _KERNEL /* * Mach derived conversion macros */ @@ -82,4 +83,6 @@ #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024)) +#endif + #endif /* !_MACHINE_PARAM_H_ */