Fix remaining test files: replace POSIX headers with platform_compat.h
This commit is contained in:
1 parent
c75ac9d23b
commit
20a3eaf73c
7 files changed
+21
-21
No files matched your search
Binary file not shown.
@@ -3,12 +3,12 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include "../lib/platform_compat.h"
|
||||
#include <stdint.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
|
||||
|
||||
|
||||
#include "u_async.h"
|
||||
|
||||
#define NUM_TIMEOUTS 100
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <fcntl.h>
|
||||
#include "../lib/platform_compat.h"
|
||||
|
||||
|
||||
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "u_async.h"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "../lib/u_async.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/socket.h>
|
||||
#include <fcntl.h>
|
||||
#include "../lib/platform_compat.h"
|
||||
|
||||
|
||||
#include "../lib/u_async.h"
|
||||
#include "../lib/debug_config.h"
|
||||
|
||||
|
||||
+3
-3
@@ -2,9 +2,9 @@
|
||||
#include "../lib/debug_config.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/socket.h>
|
||||
#include <fcntl.h>
|
||||
#include "../lib/platform_compat.h"
|
||||
|
||||
|
||||
|
||||
static void test_callback(int fd, void* arg) {
|
||||
(void)fd; (void)arg;
|
||||
|
||||
Binary file not shown.
@@ -7,12 +7,12 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include "../lib/platform_compat.h"
|
||||
#include <sys/time.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
|
||||
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "u_async.h"
|
||||
|
||||
Reference in new issue
Block a user