diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-17 18:57:28 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-17 19:09:04 -0700 |
commit | 43b8136a07fbbdf6e5bdd786d06be89904fc0854 (patch) | |
tree | 7c21c408070535b4881293ea012ffa569d8fa88a /src/XF86DGA2.c | |
parent | d58ba314d1fe6fdb1aab7a9f471caabb6f13968c (diff) |
unifdef Lynx
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/XF86DGA2.c')
-rw-r--r-- | src/XF86DGA2.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/XF86DGA2.c b/src/XF86DGA2.c index 6479c18..deb4267 100644 --- a/src/XF86DGA2.c +++ b/src/XF86DGA2.c @@ -737,13 +737,7 @@ void XDGAKeyEventToXKeyEvent( #include <stdlib.h> #include <stdio.h> #include <fcntl.h> -# if defined(Lynx) && defined(NO_MMAP) -# include <sys/types.h> -# include <errno.h> -# include <smem.h> -# else -# include <sys/mman.h> -# endif +#include <sys/mman.h> #include <sys/wait.h> #include <signal.h> #include <unistd.h> @@ -876,9 +870,6 @@ DGAMapPhysical( pMap->physical = base; pMap->size = size; -#if defined (Lynx) && defined(NO_MMAP) - pMap->virtual = smem_create("XF86DGA", (char*)base, size, SM_READ|SM_WRITE); -#else #ifndef MAP_FILE #define MAP_FILE 0 #endif @@ -891,7 +882,6 @@ DGAMapPhysical( if (pMap->virtual == (void *)-1) return False; mprotect(pMap->virtual, size, PROT_READ | PROT_WRITE); -#endif return True; } |