X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fsysclk-lwla%2Flwla.c;h=ab9fece8df1a41614d126124f6e90c34c2095875;hb=e57057aee778e723da572a6b5e2bd01526cc7beb;hp=d2f2a2579e5e41861ef053339736a8e2d672090c;hpb=c1aae90038456a61d0f9313d34e6107c3440d3e7;p=libsigrok.git
diff --git a/src/hardware/sysclk-lwla/lwla.c b/src/hardware/sysclk-lwla/lwla.c
index d2f2a257..ab9fece8 100644
--- a/src/hardware/sysclk-lwla/lwla.c
+++ b/src/hardware/sysclk-lwla/lwla.c
@@ -17,7 +17,9 @@
* along with this program. If not, see .
*/
+#include
#include
+#include
#include
#include
#include "libsigrok-internal.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;