diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 7de1dff..0f07c46 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <inttypes.h>
-#include <openobex/obex.h>
-#include <openobex/obex_const.h>
+#include <gobex.h>
#include "obexd.h"
#include "plugin.h"
if (!obj->buffer && !obj->aparams)
return -EAGAIN;
- *hi = OBEX_HDR_APPARAM;
+ *hi = G_OBEX_HDR_APPARAM;
if (pbap->params->maxlistcount == 0 || obj->firstpacket) {
obj->firstpacket = FALSE;
if (!pbap->cache.valid)
return -EAGAIN;
- *hi = OBEX_HDR_APPARAM;
+ *hi = G_OBEX_HDR_APPARAM;
if (pbap->params->maxlistcount == 0)
return array_read(obj->aparams, buf, mtu);