client/elf.h: Add missing Elf32_Phdr struct to compile under Mac OS X. client/flash.h: Add missing header ifndef.

This commit is contained in:
izsh.f0f 2010-01-05 12:32:44 +00:00
parent 2cab856f9f
commit b961ef035a
2 changed files with 17 additions and 0 deletions

View file

@ -1,6 +1,17 @@
#ifndef __ELF_H__
#define __ELF_H__
typedef struct {
uint32_t p_type;
uint32_t p_offset;
uint32_t p_vaddr;
uint32_t p_paddr;
uint32_t p_filesz;
uint32_t p_memsz;
uint32_t p_flags;
uint32_t p_align;
} __attribute__((__packed__)) Elf32_Phdr;
#define EI_NIDENT 16
typedef struct {

View file

@ -1,3 +1,6 @@
#ifndef __FLASH_H__
#define __FLASH_H__
struct partition {
int start;
int end;
@ -13,3 +16,6 @@ int find_next_area(const char *str, int *offset, int *length);
#define PHYSICAL_FLASH_START 0x100000
void do_flash(char **argv);
#endif