瀏覽代碼

[Minor] Try to fix endiannes detection on Solaris

Issue: #2204
tags/1.7.4
Vsevolod Stakhov 6 年之前
父節點
當前提交
c5d65b9430
共有 2 個檔案被更改,包括 7 行新增0 行删除
  1. 6
    0
      config.h.in
  2. 1
    0
      contrib/librdns/dns_private.h

+ 6
- 0
config.h.in 查看文件

@@ -158,6 +158,12 @@
#include <machine/endian.h>
#elif defined(__sun)
#include <sys/byteorder.h>
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifdef _LITTLE_ENDIAN
#define BYTE_ORDER LITTLE_ENDIAN
#else

+ 1
- 0
contrib/librdns/dns_private.h 查看文件

@@ -24,6 +24,7 @@
#ifndef DNS_PRIVATE_H_
#define DNS_PRIVATE_H_

#include "config.h"
#include "uthash.h"
#include "utlist.h"
#include "rdns.h"

Loading…
取消
儲存