Skip to content
Snippets Groups Projects
Commit c93a2219 authored by xbe's avatar xbe
Browse files

unix: Clean up includes.

Remove unnecessary includes. Add includes that improve portability.
parent 51bbf6a0
No related branches found
No related tags found
No related merge requests found
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "nlr.h"
#include "misc.h"
......
#include <stdint.h>
#include <stdio.h>
#include "misc.h"
......
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "nlr.h"
#include "misc.h"
......@@ -391,8 +394,6 @@ int main(int argc, char **argv) {
return 0;
}
#include <sys/stat.h>
uint mp_import_stat(const char *path) {
struct stat st;
if (stat(path, &st) == 0) {
......
......@@ -2,7 +2,10 @@
#include <assert.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
......
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment