Include xorg-server.h to fix build errors on newest glibc 98/27498/1
authorChanho Park <chanho61.park@samsung.com>
Mon, 15 Sep 2014 05:11:20 +0000 (14:11 +0900)
committerChanho Park <chanho61.park@samsung.com>
Mon, 15 Sep 2014 05:11:20 +0000 (14:11 +0900)
Like xf86-input-synaptics[1], xf86-module-xdbg was also failed when
building with glibc-2.20.
This patch also fixes incorrect xDbgEvlogGetExtensionEntry call.

[1]: https://review.tizen.org/gerrit/#/c/27494/

Change-Id: I3c993dc267b6b500e2cc9755f02e975a67e5588e
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
common/xdbg_types.h
lib/xdbg_log_dlog.c
module/xdbg_module_evlog.c

index 6c6749f..5770df6 100644 (file)
@@ -32,6 +32,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #ifndef __XDBG_TYPES_H__
 #define __XDBG_TYPES_H__
 
+#include <xorg-server.h>
 #include <xf86.h>
 #include <X11/Xdefs.h> /* for Bool */
 #include <X11/Xlib.h>
index 9e75adb..dbde8af 100644 (file)
@@ -31,6 +31,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #include <stdarg.h>
 #include <dlog.h>
+#include <xorg-server.h>
 
 #include "xdbg_log.h"
 
index 1a2f499..b2962b7 100644 (file)
@@ -380,7 +380,7 @@ static void evtPrint (EvlogType type, ClientPtr client, xEvent *ev, ReplyInfoRec
     evinfo.time = GetTimeInMillis ();
 
     /* get extension entry */
-    if (!EntryInit && !xDbgEvlogGetExtensionEntry (NULL))
+    if (!EntryInit && !xDbgEvlogGetExtensionEntry())
         return;
 
     EntryInit = 1;