diff options
| author | Pietro Cerutti <gahr@FreeBSD.org> | 2014-10-07 12:25:49 +0000 |
|---|---|---|
| committer | Pietro Cerutti <gahr@FreeBSD.org> | 2014-10-07 12:25:49 +0000 |
| commit | e47808b75c4c01fa35f0fceb291b9450e96325ae (patch) | |
| tree | 21dd1055343a14db0b8d00f86625c678d7320bfc /devel/ftjam/files/patch-make.c | |
| parent | audio/decibel-audio-player: switch from py-imaging to py-pillow (diff) | |
- Chase compiler warnings, upstream: https://savannah.nongnu.org/bugs/?42945
Diffstat (limited to 'devel/ftjam/files/patch-make.c')
| -rw-r--r-- | devel/ftjam/files/patch-make.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/devel/ftjam/files/patch-make.c b/devel/ftjam/files/patch-make.c new file mode 100644 index 000000000000..2817bb57838f --- /dev/null +++ b/devel/ftjam/files/patch-make.c @@ -0,0 +1,47 @@ +--- make.c.orig 2014-08-07 15:26:13.000000000 +0200 ++++ make.c 2014-08-07 15:27:53.000000000 +0200 +@@ -69,6 +69,10 @@ + # define max( a,b ) ((a)>(b)?(a):(b)) + # endif + ++# if defined ( OS_FREEBSD ) ++# include <unistd.h> // unlink(2) ++# endif ++ + typedef struct { + int temp; + int updating; +@@ -169,7 +173,7 @@ + COUNTS *counts, /* for reporting */ + int anyhow ) /* forcibly touch all (real) targets */ + { +- TARGETS *c, *d, *incs; ++ TARGETS *c, *incs; + TARGET *ptime = t; + time_t last, leaf, hlast; + int fate; +@@ -246,7 +250,7 @@ + case T_BIND_MISSING: + case T_BIND_PARENTS: + printf( "time\t--\t%s%s: %s\n", +- spaces( depth ), t->name, target_bind[ t->binding ] ); ++ spaces( depth ), t->name, target_bind[ (int)t->binding ] ); + break; + + case T_BIND_EXISTS: +@@ -481,13 +485,13 @@ + + if( DEBUG_MAKEPROG ) + printf( "made%s\t%s\t%s%s\n", +- flag, target_fate[ t->fate ], ++ flag, target_fate[ (int)t->fate ], + spaces( depth ), t->name ); + + if( DEBUG_CAUSES && + t->fate >= T_FATE_NEWER && + t->fate <= T_FATE_MISSING ) +- printf( "%s %s\n", target_fate[ t->fate ], t->name ); ++ printf( "%s %s\n", target_fate[ (int)t->fate ], t->name ); + } + + /* |
