mirror of
https://github.com/bobwen-dev/htpdate
synced 2025-04-11 23:00:44 +02:00
Compare commits
No commits in common. "main" and "v1.0.4rc1" have entirely different histories.
21
.github/workflows/c-cpp.yml
vendored
21
.github/workflows/c-cpp.yml
vendored
@ -1,21 +0,0 @@
|
|||||||
name: C/C++ CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: system update
|
|
||||||
run: sudo apt-get update
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: sudo apt-get install -y --fix-missing libcurl4-openssl-dev
|
|
||||||
- name: build
|
|
||||||
run: gcc -o htpdate htpdate.c -lcurl
|
|
@ -480,6 +480,11 @@ int qsort_compare(const void *a, const void *b) {
|
|||||||
return (diff > 0.0) - (diff < 0.0);
|
return (diff > 0.0) - (diff < 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
void adjust_system_time(TIME_T delta) {
|
void adjust_system_time(TIME_T delta) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Windows specific code
|
// Windows specific code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user