Bug 8294 - lib/snprintf.c compile fix
Summary: lib/snprintf.c compile fix
Status: RESOLVED FIXED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.0
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 05:00 UTC by Chris Dunlop
Modified: 2011-08-01 06:36 UTC (History)
0 users

See Also:


Attachments
lib/snprintf.c compile fix (323 bytes, patch)
2011-07-08 05:00 UTC, Chris Dunlop
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dunlop 2011-07-08 05:00:49 UTC
Created attachment 6674 [details]
lib/snprintf.c compile fix

On my Ubuntu system, lib/snprintf.c (as of 425747c) doesn't compile due to a missing NULL definition, and also for an out-of-tree build, it can't find "../config.h". The attached patch fixes both issues.
Comment 1 Wayne Davison 2011-08-01 06:36:11 UTC
I added an include of stddef.h for those systems where the other header files didn't define NULL (which they often do by including stddef.h).  I don't want the file to include rsync.h, though, so I just tweaked the config.h include.