diff --git a/src/java.desktop/unix/native/common/awt/fontpath.c b/src/java.desktop/unix/native/common/awt/fontpath.c index e64a9b051d7..b270a3fc94d 100644 --- a/src/java.desktop/unix/native/common/awt/fontpath.c +++ b/src/java.desktop/unix/native/common/awt/fontpath.c @@ -48,10 +48,6 @@ #define AWT_UNLOCK() #endif /* !HEADLESS */ -#if defined(__linux__) && !defined(MAP_FAILED) -#define MAP_FAILED ((caddr_t)-1) -#endif - #ifndef HEADLESS extern Display *awt_display; #endif /* !HEADLESS */