Skip to content

Commit

Permalink
jpg.h: add include for sys/types.h and define _GNU_SOURCE.
Browse files Browse the repository at this point in the history
this allows us to use uint on musl libc systems like Void Linux and
Alpine.
  • Loading branch information
maxice8 committed Jun 28, 2018
1 parent d0a6cfd commit c265fea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jpg.h
@@ -1,6 +1,9 @@
#ifndef _JPG_H
#define _JPG_H

#include <sys/types.h>

#define _GNU_SOURCE 1
typedef struct {
uint height;
uint width;
Expand Down

0 comments on commit c265fea

Please sign in to comment.