X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Flwla.c;h=ab9fece8df1a41614d126124f6e90c34c2095875;hb=e57057aee778e723da572a6b5e2bd01526cc7beb;hp=4cc1b656ea46bb90b71e5e5d66755ab666efee94;hpb=ce3ecb70494b5bcf483607d6ecf0906394623601;p=libsigrok.git
diff --git a/src/hardware/sysclk-lwla/lwla.c b/src/hardware/sysclk-lwla/lwla.c
index 4cc1b656..ab9fece8 100644
--- a/src/hardware/sysclk-lwla/lwla.c
+++ b/src/hardware/sysclk-lwla/lwla.c
@@ -17,9 +17,11 @@
* along with this program. If not, see .
*/
+#include
#include
+#include
#include
-#include "libsigrok.h"
+#include
#include "libsigrok-internal.h"
#include "protocol.h"
#include "lwla.h"
@@ -32,13 +34,13 @@
*/
static unsigned char *load_bitstream_file(const char *filename, int *length_p)
{
- GStatBuf statbuf;
+ struct stat statbuf;
FILE *file;
unsigned char *stream;
size_t length, count;
/* Retrieve and validate the file size. */
- if (g_stat(filename, &statbuf) < 0) {
+ if (stat(filename, &statbuf) < 0) {
sr_err("Failed to access bitstream file: %s.",
g_strerror(errno));
return NULL;