| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: meta.c,v 1.5 2020/05/24 21:10:17 nia Exp $ */ | | 1 | /* $NetBSD: meta.c,v 1.6 2020/08/25 21:43:33 js Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Implement 'meta' mode. | | 4 | * Implement 'meta' mode. |
5 | * Adapted from John Birrell's patches to FreeBSD make. | | 5 | * Adapted from John Birrell's patches to FreeBSD make. |
6 | * --sjg | | 6 | * --sjg |
7 | */ | | 7 | */ |
8 | /* | | 8 | /* |
9 | * Copyright (c) 2009-2016, Juniper Networks, Inc. | | 9 | * Copyright (c) 2009-2016, Juniper Networks, Inc. |
10 | * Portions Copyright (c) 2009, John Birrell. | | 10 | * Portions Copyright (c) 2009, John Birrell. |
11 | * | | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | | 12 | * Redistribution and use in source and binary forms, with or without |
13 | * modification, are permitted provided that the following conditions | | 13 | * modification, are permitted provided that the following conditions |
14 | * are met: | | 14 | * are met: |
| @@ -36,26 +36,30 @@ | | | @@ -36,26 +36,30 @@ |
36 | # include "config.h" | | 36 | # include "config.h" |
37 | #endif | | 37 | #endif |
38 | #include <sys/stat.h> | | 38 | #include <sys/stat.h> |
39 | #ifdef HAVE_LIBGEN_H | | 39 | #ifdef HAVE_LIBGEN_H |
40 | #include <libgen.h> | | 40 | #include <libgen.h> |
41 | #elif !defined(HAVE_DIRNAME) | | 41 | #elif !defined(HAVE_DIRNAME) |
42 | char * dirname(char *); | | 42 | char * dirname(char *); |
43 | #endif | | 43 | #endif |
44 | #include <errno.h> | | 44 | #include <errno.h> |
45 | #if !defined(HAVE_CONFIG_H) || defined(HAVE_ERR_H) | | 45 | #if !defined(HAVE_CONFIG_H) || defined(HAVE_ERR_H) |
46 | #include <err.h> | | 46 | #include <err.h> |
47 | #endif | | 47 | #endif |
48 | | | 48 | |
| | | 49 | #ifdef HAVE_SYS_SELECT_H |
| | | 50 | #include <sys/select.h> |
| | | 51 | #endif |
| | | 52 | |
49 | #include "make.h" | | 53 | #include "make.h" |
50 | #include "job.h" | | 54 | #include "job.h" |
51 | | | 55 | |
52 | #ifdef USE_FILEMON | | 56 | #ifdef USE_FILEMON |
53 | #include "filemon/filemon.h" | | 57 | #include "filemon/filemon.h" |
54 | #endif | | 58 | #endif |
55 | | | 59 | |
56 | static BuildMon Mybm; /* for compat */ | | 60 | static BuildMon Mybm; /* for compat */ |
57 | static Lst metaBailiwick; /* our scope of control */ | | 61 | static Lst metaBailiwick; /* our scope of control */ |
58 | static char *metaBailiwickStr; /* string storage for the list */ | | 62 | static char *metaBailiwickStr; /* string storage for the list */ |
59 | static Lst metaIgnorePaths; /* paths we deliberately ignore */ | | 63 | static Lst metaIgnorePaths; /* paths we deliberately ignore */ |
60 | static char *metaIgnorePathsStr; /* string storage for the list */ | | 64 | static char *metaIgnorePathsStr; /* string storage for the list */ |
61 | | | 65 | |