aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-18 15:45:56 -0600
committerRob Landley <rob@landley.net>2016-01-18 15:45:56 -0600
commit36b7cb7c3b856b1b17db4b9df44161e40f09e237 (patch)
treece349344a27f35ea7e288d5202df22b2d79ad9df /scripts
parentba86864699997b0da780e15fd6be33c8a556e927 (diff)
downloadtoybox-36b7cb7c3b856b1b17db4b9df44161e40f09e237.tar.gz
Implement basic pkill plumbing, and fix FORCE_FLAGS on flag context switch.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mkflags.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mkflags.c b/scripts/mkflags.c
index e7ed684a..da3b2f9b 100644
--- a/scripts/mkflags.c
+++ b/scripts/mkflags.c
@@ -116,8 +116,9 @@ int main(int argc, char *argv[])
// See "intentionally crappy", above.
if (!(out = outbuf)) return 1;
- printf("#ifdef FORCE_FLAGS\n#define FORCED_FLAG 1\n#define FORCED_FLAGLL 1LL\n"
- "#else\n#define FORCED_FLAG 0\n#define FORCED_FLAGLL 0\n#endif\n\n");
+ printf("#undef FORCED_FLAG\n#undef FORCED_FLAGLL\n"
+ "#ifdef FORCE_FLAGS\n#define FORCED_FLAG 1\n#define FORCED_FLAGLL 1LL\n"
+ "#else\n#define FORCED_FLAG 0\n#define FORCED_FLAGLL 0\n#endif\n\n");
for (;;) {
struct flag *flist, *aflist, *offlist;