From 8834b304c9219de6dd592a2399ca1ac5c0b7eb0c Mon Sep 17 00:00:00 2001 From: Dante Russo Date: Thu, 2 Jul 2015 17:29:55 -0700 Subject: [PATCH] Fix implicit declaration errors in gps hal Including string.h and stdlib.h to fix compiler errors. Change-Id: I4e79c71b9e5691e51850adcc52f52b36f8e3d088 --- core/gps_extended_c.h | 4 +++- loc_api/libloc_api_50001/gps.c | 3 ++- utils/loc_target.cpp | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core/gps_extended_c.h b/core/gps_extended_c.h index 29375883..1014bab2 100644 --- a/core/gps_extended_c.h +++ b/core/gps_extended_c.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -35,6 +35,8 @@ extern "C" { #include #include +#include +#include #include #include diff --git a/loc_api/libloc_api_50001/gps.c b/loc_api/libloc_api_50001/gps.c index b0669af2..29f20f42 100644 --- a/loc_api/libloc_api_50001/gps.c +++ b/loc_api/libloc_api_50001/gps.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2011 The Linux Foundation. All rights reserved. +/* Copyright (c) 2011,2015 The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -30,6 +30,7 @@ #include #include +#include extern const GpsInterface* get_gps_interface(); diff --git a/utils/loc_target.cpp b/utils/loc_target.cpp index 08f5584d..faaedf6c 100644 --- a/utils/loc_target.cpp +++ b/utils/loc_target.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -29,6 +29,7 @@ #include #include +#include #include #include #include