$NetBSD: patch-lukefile,v 1.1 2018/03/05 12:46:02 ryoon Exp $

--- lukefile.orig	2018-02-21 02:29:31.000000000 +0000
+++ lukefile
@@ -64,7 +64,12 @@ modules  = {
    },
    ['posix.signal']        = 'ext/posix/signal.c',
    ['posix.stdio']         = 'ext/posix/stdio.c',
-   ['posix.stdlib']        = 'ext/posix/stdlib.c',
+   ['posix.stdlib']        = {
+      defines   = {
+         HAVE_MKDTEMP    = {checkfunc='mkdtemp'},
+      },
+      sources   = 'ext/posix/stdlib.c',
+   },
    ['posix.sys.msg']       = {
       defines   = {
          HAVE_SYS_MSG_H    = {checkheader='sys/msg.h'},
