follow autoconf conventions, #include cleanups

This commit is contained in:
Fumitoshi UKAI
2001-11-16 22:02:00 +00:00
parent 225a3fb8aa
commit 3a391ef6c2
24 changed files with 190 additions and 189 deletions

6
form.c
View File

@@ -1,5 +1,5 @@
/* $Id: form.c,v 1.3 2001/11/15 00:32:13 a-ito Exp $ */
/* $Id: form.c,v 1.4 2001/11/16 22:02:00 ukai Exp $ */
/*
* HTML forms
*/
@@ -648,10 +648,10 @@ form_write_from_file(FILE * f, char *boundary, char *name, char *filename, char
fprintf(f, "Content-Type: %s\r\n\r\n",
type ? type : "application/octet-stream");
#ifdef READLINK
#ifdef HAVE_READLINK /* readline == lstat ? (ukai) */
if (lstat(file, &st) < 0)
goto write_end;
#endif /* READLINK */
#endif /* HAVE_READLINK */
if (S_ISDIR(st.st_mode))
goto write_end;
fd = fopen(file, "r");