postgres.git / summary / log / commit / refs

commit    e2631255e48faff5541259eb775afed0ee96e856
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Mon Nov 19 22:28:04 2018 +0000
First released in: 12.0, 10.7, 11.2

    Add needed #include.
    
    Per POSIX, WIFSIGNALED and related macros are provided by <sys/wait.h>.
    Apparently on Linux they're also pulled in by some other inclusions,
    but BSD-ish systems are pickier.  Fixes portability issue in ffa4cbd62.
    
    Per buildfarm.


src/backend/commands/copy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 0f7f2100993..8ce8ab2c2a3 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -17,6 +17,7 @@ #include <ctype.h> #include <unistd.h> #include <sys/stat.h> +#include <sys/wait.h> #include "access/heapam.h" #include "access/htup_details.h" [parent: 8dc49a8934de]