summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bootp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 0f0867b1c4..87e30ab8e0 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -12,12 +12,14 @@
#include <command.h>
#include <net.h>
#include "bootp.h"
-#include "net_rand.h"
#include "tftp.h"
#include "nfs.h"
#ifdef CONFIG_STATUS_LED
#include <status_led.h>
#endif
+#ifdef CONFIG_BOOTP_RANDOM_DELAY
+#include "net_rand.h"
+#endif
#define BOOTP_VENDOR_MAGIC 0x63825363 /* RFC1048 Magic Cookie */
OpenPOWER on IntegriCloud