diff --git a/src/build/Common.gmake b/src/build/Common.gmake
index 3647ce4263e4704bf5e1e4182e0263eaec153f1d..60153e41493d3f61ba2a2b45378ac6a47359fb88 100644
--- a/src/build/Common.gmake
+++ b/src/build/Common.gmake
@@ -331,6 +331,9 @@ ifeq ($(os),darwin)
  CFLAGS +=  -mmacosx-version-min=$(MIN_MAC_OSX_VERSION)
  LDFLAGS += -mmacosx-version-min=$(MIN_MAC_OSX_VERSION)
 endif
+ifeq ($(os),linux)    # Linux
+ CFLAGS += -DNEEDS_STRLCPY
+endif
 
 # PThread-specific flags
 ifeq ($(os),linux)    # Linux