X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffull-write.c;h=46d030b95d5044b00ebf170afd632cafdac451b9;hb=8cdf507496138203fbf4c3f36c70575825ad7bf1;hp=6e2e446830516fdac26b3687f112385b2472da62;hpb=96de04b36f58f5e6c97cc6cfaa1abcb4fc263ede;p=gnulib.git diff --git a/lib/full-write.c b/lib/full-write.c index 6e2e44683..46d030b95 100644 --- a/lib/full-write.c +++ b/lib/full-write.c @@ -12,31 +12,24 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Copied largely from GNU C's cccp.c. */ -#ifdef HAVE_CONFIG_H -#if defined (CONFIG_BROKETS) -/* We use instead of "config.h" so that a compilation - using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h - (which it would do because it found this file in $srcdir). */ -#include -#else -#include "config.h" -#endif +#if HAVE_CONFIG_H +# include #endif #include -#ifdef HAVE_UNISTD_H -#include +#if HAVE_UNISTD_H +# include #endif #include -#ifndef STDC_HEADERS +#ifndef errno extern int errno; #endif @@ -47,7 +40,7 @@ int full_write (desc, ptr, len) int desc; char *ptr; - int len; + size_t len; { int total_written;