Moved #include of <sys/types.h> earlier so that this compiles when

<stdio.h> doesn't (bogusly) include <sys/types.h>.

Cleaned up #includes.
This commit is contained in:
Bruce Evans 1996-10-25 06:48:29 +00:00
parent 7491f60b54
commit 1ab6205ce1
2 changed files with 16 additions and 12 deletions

View File

@ -6,19 +6,20 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: mdXhl.c,v 1.6 1995/07/12 09:13:47 phk Exp $
* $Id: mdXhl.c,v 1.7 1996/07/24 20:55:38 phk Exp $
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "mdX.h"
#include <sys/file.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "mdX.h"
char *
MDXEnd(MDX_CTX *ctx, char *buf)
{

View File

@ -1,5 +1,5 @@
/*
* $Id: md5.c,v 1.5 1995/05/30 06:09:19 rgrimes Exp $
* $Id: md5.c,v 1.6 1995/07/12 09:14:46 phk Exp $
*
* Derived from:
*/
@ -21,12 +21,15 @@
* documentation and/or software.
*/
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "global.h"
#include <sys/types.h>
#include <md5.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "global.h"
/*
* Length of test block, number of test blocks.
*/