packages feed

network-info 0.2.0.2 → 0.2.0.3

raw patch · 3 files changed

+15/−6 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README.mkd view
@@ -10,7 +10,5 @@ --------------  network-info has been tested and is known to work on Ubuntu 10.10, Mac-OS X 10.6.4 and Windows XP. It probably works on other flavours of-Linux, OS X and Windows as well. I haven't tried to get it working on-BSD yet, but it should be quite similar if not the same as the code for-OS X.+OS X 10.6.4, FreeBSD 9.0 and Windows XP/7. It probably works on other+flavours of Linux, OS X, FreeBSD and Windows as well.
cbits/network-unix.c view
@@ -3,14 +3,21 @@ #include <string.h> #include <wchar.h> +#include <sys/types.h> #include <ifaddrs.h> #include <netdb.h>  #ifdef __linux__ #   include <netpacket/packet.h> #else+#   include <sys/socket.h>+#   include <net/if.h> #   include <net/if_dl.h> #   define AF_PACKET AF_LINK+#endif++#ifdef __FreeBSD__+#   include <net/pfvar.h> #endif  #include "network.h"
network-info.cabal view
@@ -1,6 +1,7 @@ name:           network-info-version:        0.2.0.2+version:        0.2.0.3 synopsis:       Access the local computer's basic network configuration+ description:    This library provides simple read-only access to the                 local computer's networking configuration. It is                 currently capable of getting a list of all the network@@ -8,7 +9,10 @@                 addresses.                 .                 network-info has been tested and is known to work on-                Ubuntu 10.10, Mac OS X 10.6.4 and Windows XP.+                Ubuntu 10.10, FreeBSD 9.0, Mac OS X 10.6.4 and Windows+                XP/7. It probably works on other flavours of Linux,+                OS X, FreeBSD and Windows as well.+ homepage:       http://github.com/jystic/network-info license:        BSD3 license-file:   LICENSE