migration/postcopy-ram: Guard use of sys/eventfd.h with CONFIG_EVENTFD
commitd8b9d7719cf6fb3186ecc817b3c04005eb1a1f01
authorMatthew Fortune <Matthew.Fortune@imgtec.com>
Tue, 23 Feb 2016 16:09:15 +0000 (23 16:09 +0000)
committerAmit Shah <amit.shah@redhat.com>
Fri, 26 Feb 2016 09:35:25 +0000 (26 15:05 +0530)
tree0e8246c0597163880e68d719cef85ba58909a7d3
parentbdf46d6478df86d5810048459582dc8f5a15b064
migration/postcopy-ram: Guard use of sys/eventfd.h with CONFIG_EVENTFD

sys/eventfd.h was being guarded only by a check for linux but does
not exist on older distributions like CentOS 5. Move the include
into the code that uses it and add an appropriate guard.

Signed-off-by: Matthew Fortune <matthew.fortune@imgtec.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <6D39441BF12EF246A7ABCE6654B023536BB85DEB@hhmail02.hh.imgtec.org>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
migration/postcopy-ram.c