--- libssp/gets-chk.c.orig	2018-07-30 12:48:13.433861000 -0400
+++ libssp/gets-chk.c	2018-07-30 12:49:23.467356000 -0400
@@ -51,7 +51,9 @@
 # include <string.h>
 #endif
 
-#if !(!defined __USE_ISOC11				\
+#if defined(__FreeBSD__) && __FreeBSD__ >= 12
+#define gets(s) abort(), NULL
+#elif !(!defined __USE_ISOC11				\
       || (defined __cplusplus && __cplusplus <= 201103L))
 extern char *gets (char *);
 #endif
