chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
split out dcgi_get_cookie
[disorder]
/
lib
/
macros-builtin.c
diff --git
a/lib/macros-builtin.c
b/lib/macros-builtin.c
index 17ec99cf67d8d0238d2ca264b506436afa338abf..d8551fbd1cc78b644545dd80dcf07e07ac5aa28d 100644
(file)
--- a/
lib/macros-builtin.c
+++ b/
lib/macros-builtin.c
@@
-35,6
+35,7
@@
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include "hash.h"
#include "mem.h"
#include "hash.h"
#include "mem.h"
@@
-61,7
+62,7
@@
const char *mx_bool2str(int n) {
}
/** @brief Write a boolean result */
}
/** @brief Write a boolean result */
-
static
int mx_bool_result(struct sink *output, int result) {
+int mx_bool_result(struct sink *output, int result) {
if(sink_writes(output, mx_bool2str(result)) < 0)
return -1;
else
if(sink_writes(output, mx_bool2str(result)) < 0)
return -1;
else
@@
-122,7
+123,7
@@
static int exp_include(int attribute((unused)) nargs,
struct stat sb;
if(!(path = mx_find(args[0]))) {
struct stat sb;
if(!(path = mx_find(args[0]))) {
- if(sink_printf(output, "[[cannot find '%s']]",
name
) < 0)
+ if(sink_printf(output, "[[cannot find '%s']]",
args[0]
) < 0)
return 0;
return 0;
}
return 0;
return 0;
}