diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-14 21:58:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-14 21:58:48 +0000 |
commit | 8ef41dcb207514cab2ef5683be26f53091bb94a6 (patch) | |
tree | 6683e7f17636acf3e9b492e947d0a0f08caa76bb /nuttx/examples/poll/net_reader.c | |
parent | 095a6f2fb2b290ef133f5c3818e6314b4f71f956 (diff) | |
download | px4-nuttx-8ef41dcb207514cab2ef5683be26f53091bb94a6.tar.gz px4-nuttx-8ef41dcb207514cab2ef5683be26f53091bb94a6.tar.bz2 px4-nuttx-8ef41dcb207514cab2ef5683be26f53091bb94a6.zip |
Changes for clean compilation with ZDS
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1610 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/poll/net_reader.c')
-rw-r--r-- | nuttx/examples/poll/net_reader.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/examples/poll/net_reader.c b/nuttx/examples/poll/net_reader.c index cdddca790..ca1fa4bb0 100644 --- a/nuttx/examples/poll/net_reader.c +++ b/nuttx/examples/poll/net_reader.c @@ -1,7 +1,7 @@ /**************************************************************************** * examples/poll/net_reader.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -52,7 +52,9 @@ #include <errno.h> #include <debug.h> +#include <net/if.h> #include <net/uip/uip-lib.h> + #include "poll_internal.h" /**************************************************************************** @@ -141,7 +143,7 @@ static void net_receive(int sd) { FD_ZERO(&readset); FD_SET(sd, &readset); - ret = select(sd + 1, &readset, NULL, NULL, &timeout); + ret = select(sd + 1, (FAR fd_set*)&readset, (FAR fd_set*)NULL, (FAR fd_set*)NULL, &timeout); } while (ret < 0 && errno == EINTR); |