librbd: Use stdlib.h instead of alloca.h 37374/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 23 Sep 2020 15:49:08 +0000 (17:49 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 24 Sep 2020 16:23:23 +0000 (18:23 +0200)
src/librbd/crypto/BlockCrypto.cc:5:10: fatal error: 'alloca.h' file not found
         ^~~~~~~~~~
1 error generated.

Including <stdlib.h> is enough

fixes: https://tracker.ceph.com/issues/47614
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/librbd/crypto/BlockCrypto.cc

index 00b244c47a5d819fbaf25b0ed93c7b9724b3741b..5bb4cfee498ad6511a6f8c7c58dda3c5b160ea7d 100644 (file)
@@ -2,10 +2,11 @@
 // vim: ts=8 sw=2 smarttab
 
 #include "librbd/crypto/BlockCrypto.h"
-#include <alloca.h>
 #include "include/byteorder.h"
 #include "include/ceph_assert.h"
 
+#include <stdlib.h>
+
 namespace librbd {
 namespace crypto {