Skip to content

Commit

Permalink
fix compilation on aarch64 (e.g. Ubuntu 18.04.4 on Raspberry Pi 4)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasBihlmaier committed Mar 13, 2020
1 parent 3209cd8 commit 3097f1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/RaspiCamControl.cpp
Expand Up @@ -26,7 +26,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifdef __arm__
#if defined(__arm__) || defined(__aarch64__)

#include <memory.h>
#include <stdio.h>
Expand Down Expand Up @@ -919,4 +919,4 @@ void raspicamcontrol_check_configuration(int min_gpu_mem) {
vcos_log_error("Failed to run camera app. Please check for firmware updates\n");
}

#endif // __arm__
#endif // __arm__ || __aarch64__
4 changes: 2 additions & 2 deletions src/raspicam_node.cpp
Expand Up @@ -37,7 +37,7 @@ int main(int argc, char** argv) {

#endif // __x86_64__

#ifdef __arm__
#if defined(__arm__) || defined(__aarch64__)

// We use some GNU extensions (basename)
#include <memory.h>
Expand Down Expand Up @@ -1380,4 +1380,4 @@ int main(int argc, char** argv) {
ros::shutdown();
}

#endif // __arm__
#endif // __arm__ || __aarch64__

0 comments on commit 3097f1a

Please sign in to comment.