summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorhpa <hpa>2001-11-13 19:58:32 +0000
committerhpa <hpa>2001-11-13 19:58:32 +0000
commit06bfb2bf4feb0e6d4620d66efcf75b59ceb3bb54 (patch)
tree1616015cad17b233f31b4a06d288ceeaf7b2c061 /config.h
parentd2206bf9b9b0fe7ae0d6fd4c08ca85132340620a (diff)
downloadtftp-hpa-06bfb2bf4feb0e6d4620d66efcf75b59ceb3bb54.tar.gz
- Better parsing of the "connect" command (tftp).
- Move missing header file stuff consistently into config.h. - Make "make -j" work correctly.
Diffstat (limited to 'config.h')
-rw-r--r--config.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/config.h b/config.h
index 7585381..1230971 100644
--- a/config.h
+++ b/config.h
@@ -78,7 +78,6 @@
#endif
#include <setjmp.h>
-#include <netinet/in.h>
#include <sys/socket.h>
/* If we don't have intmax_t, try creating it */
@@ -172,7 +171,9 @@ typedef unsigned long u_long;
#endif
#endif
-/* Sometimes IPPORT_TFTP isn't defined */
+/* netinet/in.h, and possible missing pieces */
+
+#include <netinet/in.h>
#ifndef HAVE_IPPORT_TFTP_DEFINITION
#ifndef IPPORT_TFTP
@@ -180,4 +181,19 @@ typedef unsigned long u_long;
#endif
#endif
+/* arpa/tftp.h, and possible missing pieces */
+
+#include <arpa/tftp.h>
+
+#ifndef OACK
+#define OACK 6
+#endif
+#ifndef EOPTNEG
+#define EOPTNEG 8
+#endif
+
+/* tftp-hpa version */
+
+#include "version.h"
+
#endif