diff --git a/dlls/x11drv/clipboard.c b/dlls/x11drv/clipboard.c
index 2f6a1ceb518..ea16a597cc0 100644
--- a/dlls/x11drv/clipboard.c
+++ b/dlls/x11drv/clipboard.c
@@ -62,6 +62,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <string.h>
 #include <stdarg.h>
diff --git a/dlls/x11drv/xdnd.c b/dlls/x11drv/xdnd.c
index c6309fda594..52ade4ca09d 100644
--- a/dlls/x11drv/xdnd.c
+++ b/dlls/x11drv/xdnd.c
@@ -19,6 +19,7 @@
  */
 
 #include "config.h"
+#include "wine/port.h"
 
 #include <string.h>
 #ifdef HAVE_UNISTD_H
@@ -195,7 +196,7 @@ int X11DRV_XDND_Event(HWND hWnd, XClientMessageEvent *event)
         X11DRV_XDND_FreeDragDropOp();
 
         /* Tell the target we are finished. */
-        bzero(&e, sizeof(e));
+        memset(&e, 0, sizeof(e));
         e.type = ClientMessage;
         e.display = event->display;
         e.window = event->data.l[0];