Diff for /libaitio/example/bpf.c between versions 1.1.2.3 and 1.1.2.4

version 1.1.2.3, 2013/06/25 09:26:49 version 1.1.2.4, 2013/06/25 16:42:41
Line 299  main(int argc, char **argv) Line 299  main(int argc, char **argv)
         else          else
                 strlcpy(szStr, *argv, sizeof szStr);                  strlcpy(szStr, *argv, sizeof szStr);
   
#ifdef __FreeBSD_#ifdef __FreeBSD__
        dev = io_etherOpen(szStr, O_RDWR | O_NONBLOCK, 42, (u_int*) &siz, &bz);        dev = io_etherOpen(szStr, O_RDWR, 42, (u_int*) &siz, &bz);
         if (dev == -1)
                 dev = io_etherOpen(szStr, O_RDWR, 42, (u_int*) &siz, NULL);
 #else  #else
        dev = io_etherOpen(szStr, O_RDWR | O_NONBLOCK, 42, (u_int*) &siz, NULL);        dev = io_etherOpen(szStr, O_RDWR, 42, (u_int*) &siz, NULL);
 #endif  #endif
         if (dev == -1) {          if (dev == -1) {
                 printf("Error:: #%d - %s\n", io_GetErrno(), io_GetError());                  printf("Error:: #%d - %s\n", io_GetErrno(), io_GetError());

Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>