Disable swap option on Android.

Hi, this is a followup on http://sourceforge.net/p/nbd/mailman/message/32862671/.

I've added options to disable the swap option when compiling for
with android-18, arm-linux-androideabi-4.8, and the Android NDK r10b.
I'm using the below snippet to create a standalone toolchain
and compile, and I'll try to keep my post at
http://bamos.github.io/2014/09/08/nbd-android/ synchronized
with the master branch of nbd, so feel free tag me if
any changes are made to this.

Regards,
Brandon.

---

die() { echo $*; return -1; }
touch man/nbd-{client.8,server.{1,5},trdump.1}.sh.in
autoreconf -f -i || die "autoreconf failed."

$ANDROID_NDK/build/tools/make-standalone-toolchain.sh \
  --platform=android-18 \
  --toolchain=arm-linux-androideabi-4.8 \
  --install-dir=$PWD/toolchain

pathadd() { PATH="${PATH:+"$PATH:"}$1"; }
pathadd "$PWD/toolchain/bin"
command -v arm-linux-androideabi-gcc &> /dev/null || exit -1
export SYSROOT=$PWD/toolchain/sysroot
export CC="arm-linux-androideabi-gcc --sysroot=$SYSROOT"
export CXX=arm-linux-androideabi-g++
export LD=arm-linux-androideabi-ld
export RANLIB=arm-linux-androideabi-ranlib
export AR=arm-linux-androideabi-ar
export CROSS_PREFIX=arm-linux-androideabi-
export CFLAGS='-march=armv7-a -mfloat-abi=softfp -mfpu=neon'
export LDFLAGS='-Wl,--fix-cortex-a8'

./configure --host=armv7-unknown-linux --target=armv7-unknown-linux \
  || die "configure failed"
make nbd-client
Merge https://github.com/bamos/nbd

* https://github.com/bamos/nbd:
  Disable swap option on Android.
Fix out-of-bounds write

In the (unlikely, if not impossible) case that that read returns 256
characters, we'll still be overwriting one stack byte, which is Wrong(tm).

CID#1193183
Add missing return

CID#1193182
Add missing include

setsockopt() wants <sys/types.h> and <sys/socket.h>. Add.
Make this listen to localhost only, too
Merge branch 'master' of github.com:yoe/nbd
Add license statement

Acked-By: Paolo Bonzini <pbonzini@redhat.com>
Acked-By: Alex Bligh <alex@alex.org.uk>
Merge branch 'master' of github.com:yoe/nbd

* 'master' of github.com:yoe/nbd:
  Make this listen to localhost only, too
  Add missing include
Document proposed TLS spec
Clarify things a bit