gdhcp: Use gcc atomics instead glib's ones
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 31 Oct 2011 12:19:12 +0000 (13:19 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 10 Nov 2011 12:09:50 +0000 (13:09 +0100)
commit9fc06f5dd3fab51503f1ccbb2648ac9f09f0cbac
tree6c5aee9524a13a19055fc7a1a92239c6e30707b9
parent1b45ea1b9fb70daa4b4a2905ebd9d12b9c7140d0
gdhcp: Use gcc atomics instead glib's ones

g_atomic_int_exchange_and_add() has been removed from glib 2.30
and g_atomic_int_add() should be used. Though there are still
quite a few distros out which do not ship a glib version with
g_atomic_int_add().

Instead of maintaing a compatiblilty glib layer we just use
the built-in functions for atomic memory access.
gdhcp/client.c
gdhcp/server.c