[libatomic, testsuite] Add missing include in atomic-generic.c
authorTom de Vries <tdevries@suse.de>
Mon, 7 Sep 2020 09:54:27 +0000 (11:54 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 7 Sep 2020 10:02:05 +0000 (12:02 +0200)
commitc9c87dc958a2ef3203cbdb88ed1b0575564a4279
tree0c8d181f875f57e24d66355e3c7e3ec607a9af6a
parent703bc188f4ae9ce957a30011bbe6d41a03a07ceb
[libatomic, testsuite] Add missing include in atomic-generic.c

When compiling atomic-generic.c from the libatomic testsuite, we run into:
...
$ gcc src/libatomic/testsuite/libatomic.c/atomic-generic.c -latomic
src/libatomic/testsuite/libatomic.c/atomic-generic.c: In function ‘main’:
src/libatomic/testsuite/libatomic.c/atomic-generic.c:31:7: warning: \
  implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
   if (memcmp (&a, &zero, size))
       ^~~~~~
...

Fix this by adding the missing string.h include.

Tested on x86_64.

libatomic/ChangeLog:

* testsuite/libatomic.c/atomic-generic.c: Include string.h.
libatomic/testsuite/libatomic.c/atomic-generic.c