diff --git a/ChangeLog b/ChangeLog
index 67a7119c9b5a41ce7f7753658c08aa3725ba9c1f..23e60d54a25aacbb084689a354250d82bb880d8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-06-04  Niels Möller  <nisse@lysator.liu.se>
 
+	* nettle-write.h: Include <stddef.h>, fixing compilation on
+	freebsd.
+
 	* aclocal.m4 (ac_stdint): Fixed "unsinged" typo, spotted by Andy
 	Goth.
 
diff --git a/nettle-write.h b/nettle-write.h
index dfaac7a7d30070d4021506aec70c014ea9b0b2df..75f4679b05f83164a8debd6ad6bd38a4ec064e37 100644
--- a/nettle-write.h
+++ b/nettle-write.h
@@ -34,6 +34,9 @@
 #ifndef NETTLE_WRITE_H_INCLUDED
 #define NETTLE_WRITE_H_INCLUDED
 
+/* For size_t */
+#include <stddef.h>
+
 #include "nettle-stdint.h"
 
 /* Write the word array at SRC to the byte array at DST, using little