[PATCH 2/3] clients: simple-shm: remove unused libraries and headers

Tiago Vignatti tiago.vignatti at intel.com
Thu Jul 21 06:35:39 PDT 2011


Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 clients/Makefile.am  |    2 +-
 clients/simple-shm.c |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/clients/Makefile.am b/clients/Makefile.am
index ec173f0..fa99be6 100644
--- a/clients/Makefile.am
+++ b/clients/Makefile.am
@@ -59,7 +59,7 @@ simple_client_SOURCES = simple-client.c
 simple_client_LDADD = $(SIMPLE_CLIENT_LIBS) -lm
 
 simple_shm_SOURCES = simple-shm.c
-simple_shm_LDADD = $(CLIENT_LIBS) -lrt -lm
+simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)
 
 eventdemo_SOURCES = eventdemo.c
 eventdemo_LDADD = $(toolkit_libs)
diff --git a/clients/simple-shm.c b/clients/simple-shm.c
index 56742fa..9e8a978 100644
--- a/clients/simple-shm.c
+++ b/clients/simple-shm.c
@@ -25,9 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdbool.h>
-#include <math.h>
 #include <assert.h>
-#include <fcntl.h>
 #include <unistd.h>
 #include <sys/mman.h>
 
-- 
1.7.2.2



More information about the wayland-devel mailing list