fix: Add missing headers

main
Sean McBride 4 years ago
parent 12d6d04ab2
commit 989b72b6bf

@ -2,8 +2,11 @@
The port number is passed as an argument */ The port number is passed as an argument */
/* code from: http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/socket.html */ /* code from: http://www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/socket.html */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h> #include <netinet/in.h>
void void

@ -1,6 +1,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#ifndef MAX_BUF #ifndef MAX_BUF
#define MAX_BUF (1024 * 1024 * 1) // 1m #define MAX_BUF (1024 * 1024 * 1) // 1m

@ -1,6 +1,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#define MAX_BUF 102400 #define MAX_BUF 102400

@ -1,6 +1,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#define MAX_BUF 10240 #define MAX_BUF 10240

@ -1,6 +1,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#define MAX_BUF 1024 #define MAX_BUF 1024

@ -1,6 +1,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#define MAX_BUF (1024 * 1024 * 1) // 1m #define MAX_BUF (1024 * 1024 * 1) // 1m

Loading…
Cancel
Save