Ensure that we always have off_t and ssize_t in scope.

POSIX requires <stdio.h> and <unistd.h> to define off_t and ssize_t like <sys/types.h> does, but not all platforms respect that.  Play it safe by always including <sys/types.h>.
This commit is contained in:
Dag-Erling Smørgrav 2016-09-15 10:15:00 +02:00
parent c55a3c4e09
commit fa68f15c34
28 changed files with 56 additions and 0 deletions

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <assert.h>
#include <stdint.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <errno.h>
#include <stdint.h>
#include <stdio.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -30,6 +30,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>

View file

@ -29,6 +29,8 @@
#include "cryb/impl.h"
#include <sys/types.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>