summaryrefslogtreecommitdiff
path: root/lib/libstand/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libstand/tftp.c')
-rw-r--r--lib/libstand/tftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c
index 357cf00d17b0..3a6630c87c5e 100644
--- a/lib/libstand/tftp.c
+++ b/lib/libstand/tftp.c
@@ -254,10 +254,11 @@ tftp_open(path, f)
struct iodesc *io;
int res;
-#ifdef __sparc64__
+#ifndef __i386__
if (strcmp(f->f_dev->dv_name, "net") != 0)
return (EINVAL);
#endif
+
tftpfile = (struct tftp_handle *) malloc(sizeof(*tftpfile));
if (!tftpfile)
return (ENOMEM);